aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDafydd Harries <daf@rhydd.org>2013-03-18 19:04:03 -0400
committerDafydd Harries <daf@rhydd.org>2013-03-18 19:04:03 -0400
commit55835c237143c151898b4b6aad13f4b77b2e544b (patch)
tree83dfb66a832da0e15cd906f0a23d3e253e69362d
parentb0c990223f60363d750cfd41420367b8b8088a2a (diff)
clarify package naming/grouping
-rw-r--r--export.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/export.py b/export.py
index 7ddb9d3..b61f2b6 100644
--- a/export.py
+++ b/export.py
@@ -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()