SHARE
TWEET
Untitled
a guest
Dec 18th, 2010
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- orig = set(['all', 'orig', 'files']
- archive = lp.people['broder'].getPPAByName('ppa')
- # or archive = lp.distribution['ubuntu'].main_archive
- sources = archive.getPublishedSources(source_name='whatever', status='Published')
- urls = set([os.path.basename(u) for u in s.sourceFileUrls() for s in sources])
- if orig - urls:
- return '-sd'
- else:
- return '-sa'
RAW Paste Data
