vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

yum-3.4.3_el70-releasever.patch (688B)


      1 Index: yum-3.4.3/yum/config.py
      2 ===================================================================
      3 --- yum-3.4.3.orig/yum/config.py
      4 +++ yum-3.4.3/yum/config.py
      5 @@ -1073,8 +1073,12 @@ def readStartupConfig(configfile, root,
      6  
      7      # setup the release ver here
      8      if releasever is None:
      9 -        releasever = _getsysver(startupconf.installroot,
     10 -                                startupconf.distroverpkg)
     11 +        try:
     12 +            releasever = _getsysver(startupconf.installroot,
     13 +                                    startupconf.distroverpkg)
     14 +        except:
     15 +            releasever = ""
     16 +
     17      startupconf.releasever = releasever
     18  
     19      uuidfile = '%s/uuid' % (startupconf.persistdir,)