mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-12 01:11:29 +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,
|
'--logfile "%(logfile)s"' % self,
|
||||||
'--aptcache "/var/cache/apt/archives/"',
|
'--aptcache "/var/cache/apt/archives/"',
|
||||||
### --mirror "${ARCHIVE}" \
|
### --mirror "${ARCHIVE}" \
|
||||||
'--bindmounts "/var/cache/archive/"',
|
|
||||||
'--override-config',
|
'--override-config',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if os.path.exists("/var/cache/archive/"):
|
||||||
|
arguments.append('--bindmounts "/var/cache/archive/"')
|
||||||
|
|
||||||
localrepo = '/var/cache/archive/%(target_distro)s' % self
|
localrepo = '/var/cache/archive/%(target_distro)s' % self
|
||||||
if os.path.exists(localrepo):
|
if os.path.exists(localrepo):
|
||||||
arguments.append('--othermirror ' +\
|
arguments.append('--othermirror ' +\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user