Move DownloadError into ubuntutools/misc

This commit is contained in:
Dan Streetman 2021-07-13 07:56:54 -04:00
parent 6e18d60de4
commit 243a728d6c
2 changed files with 10 additions and 6 deletions

View File

@ -52,18 +52,17 @@ from ubuntutools.lp.udtexceptions import (PackageNotFoundException,
SeriesNotFoundException,
PocketDoesNotExistError,
InvalidDistroValueError)
from ubuntutools.misc import (download, download_text, verify_file_checksum, verify_file_checksums)
from ubuntutools.misc import (download,
download_text,
verify_file_checksum,
verify_file_checksums,
DownloadError)
from ubuntutools.version import Version
import logging
Logger = logging.getLogger(__name__)
class DownloadError(Exception):
"Unable to pull a source package"
pass
class Dsc(debian.deb822.Dsc):
"Extend deb822's Dsc with checksum verification abilities"

View File

@ -52,6 +52,11 @@ UPLOAD_QUEUE_STATUSES = ('New', 'Unapproved', 'Accepted', 'Done', 'Rejected')
_system_distribution_chain = []
class DownloadError(Exception):
"Unable to pull a source package"
pass
def system_distribution_chain():
""" system_distribution_chain() -> [string]