mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
archive: don't download from archive if using UCA staging ppa
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
This commit is contained in:
parent
d8d4fd9285
commit
9792f5b95c
@ -654,6 +654,12 @@ class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage):
|
|||||||
|
|
||||||
kwargs['ppa'] = f"{self.TEAM}/{series}-{pocket}"
|
kwargs['ppa'] = f"{self.TEAM}/{series}-{pocket}"
|
||||||
super(UbuntuCloudArchiveSourcePackage, self).__init__(*args, **kwargs)
|
super(UbuntuCloudArchiveSourcePackage, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
if pocket == 'staging':
|
||||||
|
# Don't bother with the archive; just get directly from the staging ppa, since
|
||||||
|
# none of the binaries from the archive will match the staging checksums
|
||||||
|
self.masters = []
|
||||||
|
else:
|
||||||
self.masters = ["http://ubuntu-cloud.archive.canonical.com/ubuntu/"]
|
self.masters = ["http://ubuntu-cloud.archive.canonical.com/ubuntu/"]
|
||||||
|
|
||||||
def pull_binaries(self, arch=None, name=None, ext=None):
|
def pull_binaries(self, arch=None, name=None, ext=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user