File: checkversion.py

package info (click to toggle)
afflib 3.7.17-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,320 kB
  • sloc: cpp: 20,885; ansic: 15,908; makefile: 526; sh: 438; python: 192
file content (10 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
# This file is a work of a US government employee and as such is in the Public domain. 
# Simson L. Garfinkel, March 12, 2012 

import sys
server_version = open(sys.argv[1],"r").read().strip()
print "Server Version:",server_version
if(server_version == sys.argv[2]):
    print "\n\nVersion",sys.argv[1],"is already on the server.\n\n"
    sys.exit(-1)
sys.exit(0)