60 Commits

Author SHA1 Message Date
Benjamin Drung
b1bc7e1cdc Address pylint complaints
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 23:10:31 +01:00
Benjamin Drung
3354b526b5 style: Format Python code with black
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Dan Streetman
e3268a62f4 pull-pkg: create pull-[lp|debian|uca]-* scripts
for backwards compatibility (i.e. to keep pull-lp-source,
pull-debian-source, and pull-uca-source) and for ease of use,
create scripts that default the pull-pkg -p and -D params

re-create pull-pkg script also, to call ubuntutools/pullpkg.py
without any default pull or distro parameters
2019-11-25 10:10:06 -05:00
Dan Streetman
ec72cf1538 pull-pkg: rename pull-lp-source to pull-pkg
no changes to the file, just a rename, to allow the next commit
to show the changes to the file.
2019-11-25 09:57:54 -05:00
Stefano Rivera
d681c7dc89 Unused exception variables 2019-09-04 19:24:44 -03:00
Stefano Rivera
4239d49582 Port pull-lp-source to Python 3 2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb Fix all flake8 issues 2017-05-01 00:20:03 +02:00
Benjamin Drung
c2aa97dba2 Move devscripts.logger to ubuntutools.logger. 2013-03-19 00:18:02 +01:00
Stefano Rivera
0adca3f7a1 Use the same construction as pull-debian-source 2012-10-17 22:15:50 +02:00
Stefano Rivera
586197d591 pull-lp-source: Catch errors parsing JSON we got from DDE (LP: #1059848) 2012-10-17 22:14:23 +02:00
Stefano Rivera
343ac49b39 pbuilder-dist, pull-debian-source, pull-lp-source, requestsync,
reverse-depends, submittodebian, syncpackage:
Handle outdated distro-info data. Fall back to sane defaults where
possible.
2012-05-06 10:15:54 +02:00
Stefano Rivera
9c20cc13a3 pull-debian-source, pull-lp-source: Resolve the source package (via DDE),
if a binary package was requested (LP: #617349)
2011-12-02 15:22:57 +02:00
Stefano Rivera
9ba1790863 pull-lp-source, requestbackport: Take the latest version from any
non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter.
2011-11-23 01:45:49 +02:00
Benjamin Drung
a03fa654f3 Move debian-distro-info, distro-info, and ubuntu-distro-info from
ubuntu-dev-tools into distro-info.
2011-06-25 17:53:44 +02:00
Benjamin Drung
e8b3a18c45 Move suspicious-source and wrap-and-sort from ubuntu-dev-tools into devscripts. 2011-05-23 23:41:00 +02:00
Stefano Rivera
1ce4774db7 Make that 'User abort.' 2011-03-06 01:12:24 +02:00
Stefano Rivera
6e485c2a7b pull-{lp,debian}-source, pull-debian-debdiff: Catch KeyboardInterrupt.
(LP: #713845)
2011-03-06 01:04:22 +02:00
Stefano Rivera
9736ae4655 Split release pockets a litle more sanely 2011-03-06 00:56:14 +02:00
Stefano Rivera
c8a854cc4a pull-{lp,debian}-source: Download requested versions, as well as simply
the latest version in a release.
2011-03-05 00:48:58 +02:00
Stefano Rivera
8657394219 Catch DownloadErrors in ubuntutools.archive users. (LP: #708862) 2011-01-31 19:01:10 +02:00
Stefano Rivera
51fe0a4db8 * pull-lp-source:
- Support -d (LP: #681699)
  - str() exceptions before passing to Logger (LP: #695523)
2010-12-30 17:13:58 +02:00
Stefano Rivera
5553c11ddd Beginnings of an OO ubuntutools.archive.SourcePackage 2010-12-29 23:13:48 +02:00
Stefano Rivera
2c27cf68a6 Move common downloading code into new ubuntutools.mirrors. Use in backportpackage, pull-debian-debdiff, pull-lp-source 2010-12-28 00:23:53 +02:00
Benjamin Drung
2ba510bb89 Fix invalid name pylint report. 2010-12-27 22:33:01 +01:00
Stefano Rivera
00faea17e2 Remove devscripts checks (we Depend on it). Reword python-simplejson error 2010-12-25 18:31:00 +02:00
Benjamin Drung
8ebee7e0f2 pull-lp-source: Make pylint a little bit happier. 2010-12-25 16:32:29 +01:00
Stefano Rivera
5182d62de1 if...else precedence in dget calls 2010-12-24 13:47:22 +02:00
Stefano Rivera
86e940a9ae pull-lp-source: Support -d (LP: #681699) 2010-12-24 12:16:34 +02:00
Stefano Rivera
9033bf7ee7 Tidy pull-lp-source, use Logger 2010-12-24 12:04:46 +02:00
Stefano Rivera
0d51908f40 Add mirror support to pull-lp-source 2010-12-24 12:00:03 +02:00
Benjamin Drung
4e7c58085e pull-lp-source: Unquote URI to get "+" instead of "%2B" in the file name
(LP: #681114).
2010-12-14 18:22:51 +01:00
Benjamin Drung
1943df29eb Remove all trailing spaces. 2010-12-03 00:06:43 +01:00
Stefano Rivera
0dd7a86948 Revert DEB_VENDOR exporting in pull-lp-source, dgetlp 2010-11-27 18:40:41 +02:00
Stefano Rivera
937e6c3aee Forgotten DEB_VENDOR change for pull-lp-source 2010-11-24 21:32:45 +02:00
Michael Bienia
1372671779 pull-lp-source: Use (anonymously) the LP API to get the URL for the .dsc
file instead of screen scraping.
2010-03-20 20:22:55 +01:00
Iain Lane
6db05720f3 Conditional LP API usage & better p-l-s errors
* lpapicache: Do not immediately bail out if we have no credentials to
  login. Clients are now expected to handle the lack of credentials
  themselves.
* pull-lp-source: Make LP API use optional - fall back to a hardcoded
  default release if we aren't using it. (LP: #477670)
* pull-lp-source: Detect more failure conditions and give a nice error
  instead of a trace
* buildd, requestsync: Detect & bail if we don't have credentials and need
  them. These scripts cannot continue under those circumstances.
2009-11-07 19:20:46 +00:00
Jon Bernard
cc7ad33a4d Fix regexp parsing of dsc file for new launchpad API 2009-09-24 11:55:24 -04:00
Michael Bienia
54e9563e92 Replace LpApiWrapper.getUbuntuSourcePackage() with
Distribution('ubuntu').getArchive().getSourcePackage()
2009-08-04 15:53:49 +02:00
Michael Bienia
a49e4f6d43 Replace LpApiWrapper.getUbuntuDistribution() with Distribution('ubuntu') 2009-08-04 15:49:24 +02:00
Michael Bienia
74e55c2166 Rename lpapiwrapper.py to lpapicache.py as it describes its function better 2009-08-04 15:40:41 +02:00
Michael Bienia
fcf86d2ad2 * lpapiwrapper.py:
Move getUbuntu{Development,}Series from LpApiWrapper to Distribution
  and rename it to get{Development,}Series
* pull-lp-source, requestsync:
  Updated for the above mention change.
2009-07-22 13:43:53 +02:00
Michael Bienia
5d9ef43b25 * pull-lp-source: Use the new LpApiWrapper class. 2009-06-12 00:14:22 +02:00
Jonathan Davies
d10afc2732 pull-lp-source: Use os.path.exists() instead of catching an error message
to check if dget is installed.
2009-05-28 03:37:38 -04:00
Jonathan Davies
b85dc1a793 pull-lp-source: Return an error message if dget is not installed. 2009-05-28 03:31:23 -04:00
Jonathan Davies
27f83c2602 pull-lp-source: Use launchpadlib instead of screen scraping to get and check if the Ubuntu release exists. 2009-05-28 03:12:35 -04:00
Colin Watson
723abf6259 * pull-lp-source:
- Set default release to karmic.
2009-04-27 14:00:14 +01:00
Jonathan Davies
32f8e2b2bc * Converted everything else. 2009-01-19 18:10:53 +00:00
Jonathan Davies
59aac908c1 * Moved common.py to ubuntutools/ subdirectory to avoid possible conflicts
in Python packaging and fixed all imports as necessary.
2009-01-17 11:23:08 +00:00
Michael Casadevall
9e1272482c * buildd: Fixed rescore (tested by Sarah Hobbs)
* submittodebian: Changed default tag to Jaunty
* pbuilder-dist: Added jaunty to ubuntu releases
* pull-lp-source: Made jaunty the default
* dch-repeat: Added jaunty
2008-11-09 06:54:51 -05:00
Jonathan Patrick Davies
3af0c337cc * common.py: Improve wording.
* massfile and pull-lp-source: Point to https Launchpad links.
2008-08-29 08:14:15 +01:00