aboutsummaryrefslogtreecommitdiffstats
path: root/core/apk-tools/version.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-05-08 09:47:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-05-08 09:47:09 +0000
commit4973205896e12e31d110dcaf2aa50aceb773076c (patch)
tree902fb7448cfb336cfaf97a328885e8ae21d5d299 /core/apk-tools/version.patch
parentadef03a765aa2d83fd3c792a3c75dbfc0f18c7e5 (diff)
downloadaports-4973205896e12e31d110dcaf2aa50aceb773076c.tar.bz2
aports-4973205896e12e31d110dcaf2aa50aceb773076c.tar.xz
core/apk-tools: fix so it does not take the aports git version
Diffstat (limited to 'core/apk-tools/version.patch')
-rw-r--r--core/apk-tools/version.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/apk-tools/version.patch b/core/apk-tools/version.patch
new file mode 100644
index 0000000000..f1bec3b321
--- /dev/null
+++ b/core/apk-tools/version.patch
@@ -0,0 +1,13 @@
+diff --git a/Make.rules b/Make.rules
+index c864064..81881a7 100644
+--- a/Make.rules
++++ b/Make.rules
+@@ -47,7 +47,7 @@ export srctree objtree
+ ##
+ # Consult SCM for better version string.
+
+-GIT_REV := $(shell git describe || echo exported)
++GIT_REV := $(shell test -d .git && git describe || echo exported)
+ ifneq ($(GIT_REV), exported)
+ FULL_VERSION := $(patsubst $(PACKAGE)-%,%,$(GIT_REV))
+ FULL_VERSION := $(patsubst v%,%,$(FULL_VERSION))