Changeset 120258


Ignore:
Timestamp:
May 20, 2014, 9:06:53 PM (5 years ago)
Author:
gaurav@…
Message:

Added multiple versions support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc14-pip2port/tester.py

    r120257 r120258  
    5656    parser.add_argument('package_version',
    5757                       metavar='package_version', type=str, nargs='*',
    58                        help='Package_Version')
     58                       help='Package_Version(s)')
    5959    parser.add_argument('-l', '--list_packages', action='store_const',
    6060                       dest='action', const='list_packages', required=False,
     
    8383
    8484    if options.action == 'data':
    85         data(options.package_name)
     85        if options.package_name == None:
     86            parser.error("No package name specified")
     87        else:
     88            if options.package_version == None:
     89                data(options.package_name)
     90            else:
     91                data(options.package_name,options.package_version)
    8692        return
    8793    else:
Note: See TracChangeset for help on using the changeset viewer.