updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / drqueue / SConstruct.patch
blobabbfef17ac37dccfd716c4e156c444f251336d19
1 --- SConstruct.orig 2010-06-13 19:27:24.000000000 +0200
2 +++ SConstruct 2011-07-26 20:26:12.253266624 +0200
3 @@ -76,11 +76,14 @@
4 try:
5 gitlog = subprocess.Popen(["git", "show", "--abbrev-commit"], stdout=subprocess.PIPE)
6 except OSError:
7 - print("Not a Git repository. Can't fetch commit id.")
8 - commit_string = ""
9 + commit_string = ""
10 else:
11 - commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1]
12 - print("Current Git commit id is: "+commit_string)
13 + if gitlog.poll() != "0":
14 + print("Not a Git repository. Can't fetch commit id.")
15 + commit_string = ""
16 + else:
17 + commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1]
18 + print("Current Git commit id is: "+commit_string)
19 return commit_string
21 def write_git_rev(commit_id):