root/trunk/contrib/yum-3.2.1-chroot.patch
| Revision 2556, 6.6 kB (checked in by ensc, 1 year ago) |
|---|
-
yum-3.2.1/yum/__init__.py
old new 201 201 # (typically /etc/yum/repos.d) 202 202 parser = ConfigParser() 203 203 for reposdir in self.conf.reposdir: 204 if os.path.exists(self.conf.installroot+'/'+reposdir): 205 reposdir = self.conf.installroot + '/' + reposdir 204 reposdir = self.conf.getRootedPath(reposdir) 206 205 207 206 if os.path.isdir(reposdir): 208 207 for repofn in glob.glob('%s/*.repo' % reposdir): … … 616 615 # if we're not root then we don't lock - just return nicely 617 616 if self.conf.uid != 0: 618 617 return 619 620 root = self.conf.installroot 621 lockfile = root + '/' + lockfile # lock in the chroot 622 lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra / 623 618 619 lockfile = self.conf.lockfile 620 624 621 mypid=str(os.getpid()) 625 622 while not self._lock(lockfile, mypid, 0644): 626 623 fd = open(lockfile, 'r') … … 652 649 if self.conf.uid != 0: 653 650 return 654 651 655 root = self.conf.installroot 656 lockfile = root + '/' + lockfile # lock in the chroot 657 652 lockfile=self.conf.lockfile 653 658 654 self._unlock(lockfile) 659 655 660 656 def _lock(self, filename, contents='', mode=0777): -
yum-3.2.1/docs/yum.conf.5
old new 23 23 following options: 24 24 25 25 .IP \fBcachedir\fR 26 Directory where yum should store its cache and db files. The default is 27 `/var/cache/yum'. 26 Directory where yum should store its cache and db files. The default 27 is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://' 28 are used, some magic will be applied to determine the real path in 29 combination with `--installroot'. 28 30 29 31 .IP \fBkeepcache\fR 30 32 Either `1' or `0'. Determines whether or not yum keeps the cache … … 40 42 repositories defined in /etc/yum/yum.conf to form the complete set of 41 43 repositories that yum will use. 42 44 45 Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic 46 will be applied to determine the real path in combination with 47 `--installroot'. 48 43 49 .IP \fBdebuglevel\fR 44 50 Debug message output level. Practical range is 0\-10. Default is `2'. 45 51 … … 47 53 Error message output level. Practical range is 0\-10. Default is `2'. 48 54 49 55 .IP \fBlogfile\fR 50 Full directory and file name for where yum should write its log file. 56 Full directory and file name for where yum should write its log 57 file. Unless the prefixes `hostfs://' or `chrootfs://' are used, 58 some magic will be applied to determine the real path in combination 59 with `--installroot'. 51 60 52 61 .IP \fBgpgcheck\fR 53 62 Either `1' or `0'. This tells yum whether or not it should perform a GPG
Note: See TracBrowser for help on using the browser.
