From 390be3f0b3d40e0123edee52acbb29705f171294 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Thu, 19 Mar 2020 16:26:44 -0400 Subject: [PATCH] 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 --- ubuntutools/archive.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ubuntutools/archive.py b/ubuntutools/archive.py index 7d37b34..10397ac 100644 --- a/ubuntutools/archive.py +++ b/ubuntutools/archive.py @@ -622,26 +622,6 @@ class DebianSourcePackage(SourcePackage): if name in self.snapshot_files: 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: @property def snapshot_package(self):