23 Commits

Author SHA1 Message Date
Markus Korn
7b0977b0df parse query part in common.translate_web_api() 2009-01-05 14:45:20 +01:00
Markus Korn
b8211abef1 added launchpadlib logic to common.py 2009-01-02 17:51:55 +01:00
Jonathan Davies
cd3ec9ba7a * String improvements. 2008-12-30 10:23:00 +00:00
Martin Pitt
c19ab4eb19 common.py, checkReleaseExists() and checkSourceExists(): Add support for
specifying pockets (e. g. release name "intrepid-proposed").
2008-11-11 10:10:27 +01:00
Jonathan Patrick Davies
c35c9c1246 * buildd: Fixed strings.
* common.py: Revert find() addition - breaks sqlite cookie checker.
2008-09-09 11:58:27 +01:00
Siegfried-Angel Gevatter Pujals
6009e9d41b Trap an exception and fix some strings. 2008-09-06 15:48:30 +02:00
Jonathan Patrick Davies
772d40b939 * debian/control:
- Improved description.
   - Wrapped Depends line and bumped debhelper build-dependency version to 6.
* debian/compat: Changed to 6.
* Moved https_proxy dropping code to common.py.
2008-09-01 11:41:19 +01: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
Jonathan Patrick Davies
ea5b154129 * common.py: New function: packageComponent() - returns which component a package
in Ubuntu is in.
* buildd: Check which component the package is in.
2008-08-29 07:44:58 +01:00
Jonathan Patrick Davies
3c25fca142 * common.py: New function: isLPTeamMember() - checks if the user is a member of
the Launchpad team using cookies for authentication.
* requestsync: Adapt team checking with the function above.
* buildd: Adapt privilege checking code to the new function above.
2008-08-28 19:21:45 +01:00
Jonathan Patrick Davies
49c0e14da3 * common.py:
- If loading a cookie file raises an exception exit.
  - Improve cookie file writing.
2008-08-27 15:33:18 +01:00
Jonathan Patrick Davies
70fc6fa3c7 * common.py: New functions: checkReleaseExists() and checkSourceExists().
* buildd and pull-lp-source: Adapt code to use new functions above.
2008-08-27 10:22:08 +01:00
Kees Cook
884e3a8575 common.py: allow for multiple firefox instances, check all possible
cookie files.
2008-08-20 10:59:31 -07:00
Jonathan Patrick Davies
307417e56a * common.py: What is with this little dot? 2008-08-14 23:12:45 +01:00
Siegfried-Angel Gevatter Pujals
91f62881df - Add functions mkdir and readlist. 2008-08-12 23:42:44 +02:00
Siegfried-Angel Gevatter Pujals
0faf0bc3e5 Relicense Kees' scripts to GPLv3+. Add sbuild as alternative recommend to pbuilder. 2008-08-12 20:15:15 +02:00
Jonathan Patrick Davies
8d89a43e4b * common.py: Use os.path.expanduser() instead of os.environ. 2008-08-12 18:48:56 +01:00
Jonathan Patrick Davies
a37b0de322 * common.py: Use os.path.expanduser() instead of os.environ. 2008-08-12 18:43:21 +01:00
Jonathan Patrick Davies
b0528dd32e * requestsync: Fixes to permission checking.
* common.py: Change cookie file permissions to read and write only by user.
2008-08-12 18:18:11 +01:00
Jonathan Patrick Davies
05c55bfbe2 * common.py: Removed print "Using cookie file" line.
* requestsync:
  - Using the Launchpad cookie file, validate that the user is a member
    the ubuntu-dev team on Launchpad. Thus, checking if the user needs
    sponsership or not (LP: #130648).
* doc/requestsync.1: Removed mention of -s flag. Obsoleted by the above.
2008-08-12 13:52:05 +01:00
Jonathan Patrick Davies
fb7bb815e0 * common.py: Use sqlite3 instead of pysqlite2 as it forms part of Python 2.5.
* debian/control: Changed XS-Python-Version to >= 2.5.
2008-08-11 23:15:47 +01:00
Jonathan Patrick Davies
0adea5faa0 * requestsync: Use the functions in the common.py file above to authenticate
with Launchpad.
* common.py: Check that the file written has Launchpad entries.
* buildd: Use new functions in common.py.
2008-08-11 22:53:37 +01:00
Siegfried-Angel Gevatter Pujals
0dc2681b17 Move ubuntutools/common.py to common.py. 2008-08-11 22:53:25 +02:00