mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 07:51:28 +00:00
Merge branch 'lp1314076' of git+ssh://git.launchpad.net/~freyes/ubuntu-dev-tools
MR: https://code.launchpad.net/~freyes/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/345774 Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
commit
a2aacb28ff
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,6 +1,8 @@
|
|||||||
ubuntu-dev-tools (0.166) UNRELEASED; urgency=medium
|
ubuntu-dev-tools (0.166) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
*
|
[ Felipe Reyes ]
|
||||||
|
* pbuilder-dist:
|
||||||
|
+ Fix handling of --othermirror when a local archive found. LP: #1314076
|
||||||
|
|
||||||
-- Mattia Rizzolo <mattia@debian.org> Fri, 18 May 2018 17:57:21 +0200
|
-- Mattia Rizzolo <mattia@debian.org> Fri, 18 May 2018 17:57:21 +0200
|
||||||
|
|
||||||
|
@ -249,13 +249,6 @@ class PbuilderDist(object):
|
|||||||
if os.path.exists('/var/cache/archive/'):
|
if os.path.exists('/var/cache/archive/'):
|
||||||
arguments += ['--bindmounts', '/var/cache/archive/']
|
arguments += ['--bindmounts', '/var/cache/archive/']
|
||||||
|
|
||||||
localrepo = '/var/cache/archive/' + self.target_distro
|
|
||||||
if os.path.exists(localrepo):
|
|
||||||
arguments += [
|
|
||||||
'--othermirror',
|
|
||||||
'deb file:///var/cache/archive/ %s/' % self.target_distro,
|
|
||||||
]
|
|
||||||
|
|
||||||
config = UDTConfig()
|
config = UDTConfig()
|
||||||
if self.target_distro in self._debian_distros:
|
if self.target_distro in self._debian_distros:
|
||||||
mirror = os.environ.get('MIRRORSITE',
|
mirror = os.environ.get('MIRRORSITE',
|
||||||
@ -276,6 +269,11 @@ class PbuilderDist(object):
|
|||||||
arguments += ['--mirror', mirror]
|
arguments += ['--mirror', mirror]
|
||||||
|
|
||||||
othermirrors = []
|
othermirrors = []
|
||||||
|
localrepo = '/var/cache/archive/' + self.target_distro
|
||||||
|
if os.path.exists(localrepo):
|
||||||
|
repo = 'deb file:///var/cache/archive/ %s/' % self.target_distro
|
||||||
|
othermirrors.append(repo)
|
||||||
|
|
||||||
if self.target_distro in self._debian_distros:
|
if self.target_distro in self._debian_distros:
|
||||||
debian_info = DebianDistroInfo()
|
debian_info = DebianDistroInfo()
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user