Rev 56: Add the ability to add an launchpadlib cache directory in http://bazaar.launchpad.net/~canonical-bazaar/udd/hottest100
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 26 17:11:56 GMT 2010
At http://bazaar.launchpad.net/~canonical-bazaar/udd/hottest100
------------------------------------------------------------
revno: 56
revision-id: john at arbash-meinel.com-20100126171129-xxsd5bal5dp2045k
parent: jelmer at samba.org-20100126170713-5f013i5vqobr6yl5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: hottest100
timestamp: Tue 2010-01-26 11:11:29 -0600
message:
Add the ability to add an launchpadlib cache directory
-------------- next part --------------
=== modified file 'check-hottest.py'
--- a/check-hottest.py 2010-01-26 16:53:50 +0000
+++ b/check-hottest.py 2010-01-26 17:11:29 +0000
@@ -110,6 +110,9 @@
help='How many days till a package goes "stale" (default 14)')
p.add_option('--count', type=int, default=None,
help='Only process COUNT packages')
+ p.add_option('--lp-cache', default=None, type=str, metavar="DIR",
+ help='Use DIR as the location for caching launchpad request'
+ ' information')
opts, args = p.parse_args(args)
if len(args) == 0:
@@ -130,7 +133,8 @@
output_stream)
lp = launchpad.Launchpad.login('check-hottest', '', '',
- launchpad.EDGE_SERVICE_ROOT)
+ launchpad.EDGE_SERVICE_ROOT,
+ cache=opts.lp_cache)
distribution = lp.distributions['ubuntu']
current_distro_series = distribution.current_series
archive = distribution.main_archive
More information about the bazaar-commits
mailing list