diff options
author | Angelo Theodorou | 2015-07-07 22:12:51 +0100 |
---|---|---|
committer | Angelo Theodorou | 2015-07-07 22:12:51 +0100 |
commit | 282eb4ef798f885b7337f94411be63f54d8159ac (patch) | |
tree | f14a3d28d0829780d4040d069d4022bcc7698f2b /SConstruct.patch | |
download | aur-drqueue.tar.gz |
Initial import
Diffstat (limited to 'SConstruct.patch')
-rw-r--r-- | SConstruct.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/SConstruct.patch b/SConstruct.patch new file mode 100644 index 000000000000..abbfef17ac37 --- /dev/null +++ b/SConstruct.patch @@ -0,0 +1,21 @@ +--- SConstruct.orig 2010-06-13 19:27:24.000000000 +0200 ++++ SConstruct 2011-07-26 20:26:12.253266624 +0200 +@@ -76,11 +76,14 @@ + try: + gitlog = subprocess.Popen(["git", "show", "--abbrev-commit"], stdout=subprocess.PIPE) + except OSError: +- print("Not a Git repository. Can't fetch commit id.") +- commit_string = "" ++ commit_string = "" + else: +- commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1] +- print("Current Git commit id is: "+commit_string) ++ if gitlog.poll() != "0": ++ print("Not a Git repository. Can't fetch commit id.") ++ commit_string = "" ++ else: ++ commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1] ++ print("Current Git commit id is: "+commit_string) + return commit_string + + def write_git_rev(commit_id): |