Only bind-mount /var/cache/archive if it actually exists

This commit is contained in:
Iain Lane 2008-09-29 11:23:49 +01:00
parent 086890b756
commit 7a13c54ca5

View File

@ -198,10 +198,12 @@ class pbuilder_dist:
'--logfile "%(logfile)s"' % self,
'--aptcache "/var/cache/apt/archives/"',
### --mirror "${ARCHIVE}" \
'--bindmounts "/var/cache/archive/"',
'--override-config',
]
if os.path.exists("/var/cache/archive/"):
arguments.append('--bindmounts "/var/cache/archive/"')
localrepo = '/var/cache/archive/%(target_distro)s' % self
if os.path.exists(localrepo):
arguments.append('--othermirror ' +\