774 |
if options.show_version: sys.stdout.write("\t%s\t%s" % (spec_version, package_version)) |
if options.show_version: sys.stdout.write("\t%s\t%s" % (spec_version, package_version)) |
775 |
print |
print |
776 |
|
|
777 |
|
def cmd_check_version(options, parser): |
778 |
|
streams = join_streams(show_version=True) |
779 |
|
|
780 |
|
for package, module, package_version, spec_version, downstream_files in streams: |
781 |
|
if package_version == spec_version: |
782 |
|
continue |
783 |
|
|
784 |
|
sys.stdout.write(package) |
785 |
|
sys.stdout.write("\t%s\t%s" % (spec_version, package_version)) |
786 |
|
sys.stdout.write("\n") |
787 |
|
|
788 |
def cmd_check_latest(options, parser): |
def cmd_check_latest(options, parser): |
789 |
streams = join_streams(show_version=True) |
streams = join_streams(show_version=True) |
790 |
|
|
1032 |
func=cmd_group_owner |
func=cmd_group_owner |
1033 |
) |
) |
1034 |
|
|
1035 |
|
subparser = subparsers.add_parser('check-version', help='check if spec version and downstream version match') |
1036 |
|
subparser.set_defaults( |
1037 |
|
func=cmd_check_version |
1038 |
|
) |
1039 |
|
|
1040 |
subparser = subparsers.add_parser('check-latest', help='check for latest version of packages') |
subparser = subparsers.add_parser('check-latest', help='check for latest version of packages') |
1041 |
subparser.set_defaults( |
subparser.set_defaults( |
1042 |
func=cmd_check_latest |
func=cmd_check_latest |