/[soft]/mga-gnome/trunk/mga-gnome
ViewVC logotype

Diff of /mga-gnome/trunk/mga-gnome

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3113 by ovitters, Mon Feb 27 14:32:00 2012 UTC revision 3114 by ovitters, Tue Feb 28 08:18:12 2012 UTC
# Line 74  def judge_version_increase(version_old, Line 74  def judge_version_increase(version_old,
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    
# Line 478  def cmd_co(options, parser): Line 476  def cmd_co(options, parser):
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()
# Line 572  def main(): Line 575  def main():
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')

Legend:
Removed from v.3113  
changed lines
  Added in v.3114

  ViewVC Help
Powered by ViewVC 1.1.30