diff options
author | Dafydd Harries <daf@rhydd.org> | 2013-03-18 19:04:03 -0400 |
---|---|---|
committer | Dafydd Harries <daf@rhydd.org> | 2013-03-18 19:04:03 -0400 |
commit | 55835c237143c151898b4b6aad13f4b77b2e544b (patch) | |
tree | 83dfb66a832da0e15cd906f0a23d3e253e69362d | |
parent | b0c990223f60363d750cfd41420367b8b8088a2a (diff) |
clarify package naming/grouping
-rw-r--r-- | export.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -252,17 +252,24 @@ def main(): args = sys.argv[1:] if len(args) == 0: + # First, find all upstream names and the source packages corresponding + # to them. + unames = set(data.cps['Upstream-Name'].dropna()) for uname in unames: export(data, uname) + # For source packages with no upstream name, use the source package + # name as the upstream name. + no_uname = set(data.cps[ data.cps['Upstream-Name'].isnull()]['_srcpkg']) for srcpkg in no_uname: export_srcpkgs(data, srcpkg, [srcpkg]) elif len(args) == 1: + # XXX: assumes argument is an upstream name export(data, args[0]) else: raise RuntimeError() |