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:
Dan Streetman 2020-03-19 16:26:44 -04:00
parent 9d7ce2745f
commit 390be3f0b3

View File

@ -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):