aports/main/linux-grsec/setlocalversion.patch
Natanael Copa e5412705b6 main/linux-grsec: fix localversion
it picked up the aports git repo by mistake
2010-10-26 13:24:44 +00:00

12 lines
418 B
Diff

--- ./scripts/setlocalversion.orig
+++ ./scripts/setlocalversion
@@ -43,7 +43,7 @@
fi
# Check for git and a git repo.
- if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
+ if [ -d "$srctree"/.git ] && head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
# If we are at a tagged commit (like "v2.6.30-rc6"), we ignore
# it, because this version is defined in the top level Makefile.