mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-16 12:51:08 +00:00
There are only 2 options for getting the dsc file: 1) it's provided as 'dscfile' param 2) we look it up via lp_spph For case #1, update the constructor to immediately read the provided file to create the self._dsc object, and set package and version from that. For case #2, simplify various functions to simply use the normal _download_file_from_urls() function to get the dsc file from the normal locations (mirrors, masters, directly from lp), using the same process as any other file, including checking checksum(s). Signed-off-by: Dan Streetman <ddstreet@canonical.com>