Changeset 2179

Show
Ignore:
Timestamp:
03/21/10 22:48:19 (2 years ago)
Author:
saxa
Message:

Small correction of the printed header.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • check_packs/check_packs.py

    r2178 r2179  
    6161            build script file. 
    6262        ''' 
     63        # Lets print a nice header 
     64        print """ 
     65-------------------------------------------------- 
     66| PACKAGE NAME                       |  VERSION  | 
     67--------------------------------------------------""" 
     68 
     69        total = 1 
    6370        i = 0 
    64         for i in range(30): 
    65                 print '-' 
     71        for i in range(total): 
    6672                i += 1 
    67         print "%s\t\t%s" % (pack_name, version) 
     73                print "%s\t\t\t\t\t%s" % (pack_name, version) 
    6874 
    6975print_latest_version('pam', '1.1.1') 
    7076 
    7177 
    72 def write_to_buildscript(version): 
    73         build_script = "/home/sasa/DEVELOPMENT/check_packs/build.pam" 
    74  
    75         build = open(build_script, 'w') 
    76  
    77         while build: 
    78                 ln = build.readline() 
    79  
    80                 if "VERSION" in ln: 
    81                         newline = ln.replace("VERSION=", new_version) 
    82                         print newline 
    83                         #bld.write(newline) 
    84                 if ln == '': 
    85                         break 
    86  
    87         bld.close() 
    88  
    89 write_to_buildscript('2.2.3.4') 
    90