daily pastebin goal
46%
SHARE
TWEET

Untitled

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