Advertisement
Guest User

Untitled

a guest
Jan 28th, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from launchpadlib.launchpad import Launchpad
  2. from time import sleep
  3. launchpad = Launchpad.login_anonymously("elementary-build-from-bzr", "production")
  4. sleep (1)
  5. daily_ppa = launchpad.load("~elementary-os/+archive/daily")
  6. sleep (1)
  7. daily_ppa_link = daily_ppa.self_link
  8. sleep (1)
  9. branch = launchpad.branches.getByUrl(url="lp:launchpad")
  10. sleep (1)
  11. recipe_collection = branch.recipes
  12. sleep (1)
  13. for recipe in recipe_collection:
  14.     sleep (1)
  15.     current_ppa = recipe.daily_build_archive
  16.     sleep (1)
  17.     current_ppa_link = current_ppa.self_link
  18.     sleep (1)
  19.     if current_ppa_link == daily_ppa_link:
  20.         sleep (1)
  21.         print recipe.recipe_text
  22.         sleep (1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement