mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
archive: remove DebianSourcePackage.pull_dsc()
No longer necessary to override this function as the superclass now does everything the subclass function does. Signed-off-by: Dan Streetman <ddstreet@canonical.com>
This commit is contained in:
parent
9d7ce2745f
commit
390be3f0b3
@ -622,26 +622,6 @@ class DebianSourcePackage(SourcePackage):
|
|||||||
if name in self.snapshot_files:
|
if name in self.snapshot_files:
|
||||||
yield self.snapshot_files[name]
|
yield self.snapshot_files[name]
|
||||||
|
|
||||||
def pull_dsc(self):
|
|
||||||
"Retrieve dscfile and parse"
|
|
||||||
try:
|
|
||||||
super(DebianSourcePackage, self).pull_dsc()
|
|
||||||
return
|
|
||||||
except DownloadError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Not all Debian Source packages get imported to LP
|
|
||||||
# (or the importer could be lagging)
|
|
||||||
for url in self._source_urls(self.dsc_name):
|
|
||||||
try:
|
|
||||||
self._download_dsc(url)
|
|
||||||
except DownloadError:
|
|
||||||
continue
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
raise DownloadError('dsc could not be found anywhere')
|
|
||||||
self._check_dsc()
|
|
||||||
|
|
||||||
# Local methods:
|
# Local methods:
|
||||||
@property
|
@property
|
||||||
def snapshot_package(self):
|
def snapshot_package(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user