fixed patch and re-added lost hunk which caused broken paths for cachedir, logfile...
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 11 Sep 2007 21:22:03 +0000 (21:22 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 11 Sep 2007 21:22:03 +0000 (21:22 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2611 94cd875c-1c1d-0410-91d2-eb244daf1a30

contrib/yum-3.2.4-chroot.patch

index 5900cb3..fd6c023 100644 (file)
      reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
      syslog_ident = Option()
      syslog_facility = Option('LOG_DAEMON')
-@@ -615,7 +636,7 @@ def readMainConfig(startupconf):
+@@ -615,9 +636,9 @@ def readMainConfig(startupconf):
      yumconf.populate(startupconf._parser, 'main')
  
      # Apply the installroot to directory options
 -    for option in ('cachedir', 'logfile', 'persistdir'):
 +    for option in ('cachedir', 'logfile', 'persistdir', 'lockfile'):
          path = getattr(yumconf, option)
-         setattr(yumconf, option, yumconf.installroot + path)
+-        setattr(yumconf, option, yumconf.installroot + path)
++        setattr(yumconf, option, yumconf.getRootedPath(path))
      
+     # Add in some extra attributes which aren't actually configuration values 
+     yumconf.yumvar = yumvars
 --- yum-3.2.4/docs/yum.conf.5.chroot
 +++ yum-3.2.4/docs/yum.conf.5
 @@ -23,8 +23,10 @@ The [main] section must exist for yum to