mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
Only bind-mount /var/cache/archive if it actually exists
This commit is contained in:
parent
086890b756
commit
7a13c54ca5
@ -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 ' +\
|
||||
|
Loading…
x
Reference in New Issue
Block a user