From 38d994aa83b068f93189e91fe466387759f7451b Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sun, 1 Jun 2014 13:16:28 +0100 Subject: Fix .deb packaging Contcatenating the .. onto the filename breaks os.path.dirname. Change-Id: Ib018276166c9554c9adf53342d9c8bc5f954d13d diff --git a/BuildTools/GetBuildVersion.py b/BuildTools/GetBuildVersion.py index 007fec8..fc92d15 100755 --- a/BuildTools/GetBuildVersion.py +++ b/BuildTools/GetBuildVersion.py @@ -11,11 +11,11 @@ if "--major" in sys.argv : only_major = True if only_major : - v = Version.getBuildVersion(os.path.dirname(sys.argv[0] + "/.."), sys.argv[1]) + v = Version.getBuildVersion(os.path.dirname(sys.argv[0]) + "/..", sys.argv[1]) version_match = re.match("(\d+)\.(\d+).*", v) if version_match : print version_match.group(1) else : print "0" else : - print Version.getBuildVersion(os.path.dirname(sys.argv[0] + "/.."), sys.argv[1]) + print Version.getBuildVersion(os.path.dirname(sys.argv[0]) + "/..", sys.argv[1]) -- cgit v0.10.2-6-g49f6