]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/checkversions.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Tools / versioncheck / checkversions.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/checkversions.py b/AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/checkversions.py
deleted file mode 100644 (file)
index 2455f30..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-"""Checkversions - recursively search a directory (default: sys.prefix)\r
-for _checkversion.py files, and run each of them. This will tell you of\r
-new versions available for any packages you have installed."""\r
-\r
-import os\r
-import getopt\r
-import sys\r
-import pyversioncheck\r
-\r
-CHECKNAME="_checkversion.py"\r
-\r
-VERBOSE=1\r
-\r
-USAGE="""Usage: checkversions [-v verboselevel] [dir ...]\r
-Recursively examine a tree (default: sys.prefix) and for each package\r
-with a _checkversion.py file compare the installed version against the current\r
-version.\r
-\r
-Values for verboselevel:\r
-0 - Minimal output, one line per package\r
-1 - Also print descriptions for outdated packages (default)\r
-2 - Print information on each URL checked\r
-3 - Check every URL for packages with multiple locations"""\r
-\r
-def check1dir(dummy, dir, files):\r
-    if CHECKNAME in files:\r
-        fullname = os.path.join(dir, CHECKNAME)\r
-        try:\r
-            execfile(fullname)\r
-        except:\r
-            print '** Exception in', fullname\r
-\r
-def walk1tree(tree):\r
-    os.path.walk(tree, check1dir, None)\r
-\r
-def main():\r
-    global VERBOSE\r
-    try:\r
-        options, arguments = getopt.getopt(sys.argv[1:], 'v:')\r
-    except getopt.error:\r
-        print USAGE\r
-        sys.exit(1)\r
-    for o, a in options:\r
-        if o == '-v':\r
-            VERBOSE = int(a)\r
-    if not arguments:\r
-        arguments = [sys.prefix]\r
-    for dir in arguments:\r
-        walk1tree(dir)\r
-\r
-if __name__ == '__main__':\r
-    main()\r