74 |
5+: Ok""" |
5+: Ok""" |
75 |
versions = (version_old, version_new) |
versions = (version_old, version_new) |
76 |
|
|
|
print " => ".join(versions) |
|
|
|
|
77 |
# First do a basic version comparison to ensure version_new is actually newer |
# First do a basic version comparison to ensure version_new is actually newer |
78 |
compare = version_cmp(version_new, version_old) |
compare = version_cmp(version_new, version_old) |
79 |
|
|
476 |
for package in downstream[module]: |
for package in downstream[module]: |
477 |
subprocess.call(['mgarepo', 'co', package], cwd=cwd) |
subprocess.call(['mgarepo', 'co', package], cwd=cwd) |
478 |
|
|
479 |
def cmd_ls(options, parser): |
def join_streams(): |
480 |
upstream = get_upstream_names() |
upstream = get_upstream_names() |
481 |
downstream, downstream_files = get_downstream_names() |
downstream, downstream_files = get_downstream_names() |
482 |
|
|
483 |
matches = upstream & set(downstream.keys()) |
matches = upstream & set(downstream.keys()) |
484 |
for module in matches: |
for module in matches: |
485 |
print "\n".join(sorted(downstream[module])) |
for package in downstream[module]: |
486 |
|
yield (package, module) |
487 |
|
|
488 |
|
def cmd_ls(options, parser): |
489 |
|
for package, module in sorted(join_streams()): |
490 |
|
print "\t".join((package, module)) if options.upstream else package |
491 |
|
|
492 |
def cmd_patches(options, parser): |
def cmd_patches(options, parser): |
493 |
upstream = get_upstream_names() |
upstream = get_upstream_names() |
575 |
) |
) |
576 |
|
|
577 |
subparser = subparsers.add_parser('packages', help='list all GNOME packages') |
subparser = subparsers.add_parser('packages', help='list all GNOME packages') |
578 |
|
subparser.add_argument("-m", "--m", action="store_true", dest="upstream", |
579 |
|
help="Show upstream module") |
580 |
subparser.set_defaults( |
subparser.set_defaults( |
581 |
func=cmd_ls |
func=cmd_ls, upstream=False |
582 |
) |
) |
583 |
|
|
584 |
subparser = subparsers.add_parser('patches', help='list all GNOME patches') |
subparser = subparsers.add_parser('patches', help='list all GNOME patches') |