Create a gist now

Instantly share code, notes, and snippets.

@Yofel /mv_repo.py
Last active May 2, 2016

What would you like to do?
#!/usr/bin/env python3
from launchpadlib.launchpad import Launchpad
lp = Launchpad.login_with("kubuntu-dev-tools", "production", version="devel")
packagers = lp.people['kubuntu-packagers']
packaging = lp.projects['kubuntu-packaging']
for repo in lp.git_repositories.getRepositories(target=packagers):
if repo.name is not 'kubuntu-automation':
#print(repo.name)
repo.target = packaging
repo.lp_save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment