yum-3.2.29_el66-releasever.patch (689B)
1 Index: yum-3.2.29/yum/config.py 2 =================================================================== 3 --- yum-3.2.29.orig/yum/config.py 4 +++ yum-3.2.29/yum/config.py 5 @@ -911,7 +911,10 @@ def readStartupConfig(configfile, root): 6 # Stuff this here to avoid later re-parsing 7 startupconf._parser = parser 8 # setup the release ver here 9 - startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg) 10 + try: 11 + startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg) 12 + except: 13 + startupconf.releasever = "" 14 uuidfile = '%s/uuid' % (startupconf.persistdir,) 15 startupconf.uuid = get_uuid(uuidfile) 16