[CentOS-devel] [PATCH] Fixed so it works on kpatch golang-*

Pat Riehecky riehecky at fnal.gov
Wed Jun 11 15:21:27 UTC 2014


From: Pat Riehecky <riehecky at fnal.gov>

---
 get_sources.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/get_sources.sh b/get_sources.sh
index 24e507c..ab816f2 100755
--- a/get_sources.sh
+++ b/get_sources.sh
@@ -19,10 +19,11 @@ if [ -f /etc/centos-git-common ]; then
   . /etc/centos-git-common
 fi
 
-if [ ! -e ${f} ] ||  [ ! -d .git ] || [ ! -d SOURCES ]; then
+if [ ! -e ${f} ] ||  [ ! -d .git ] || [ ! -d SPECS ]; then
   echo 'You need to run this from inside a sources git repo'
   exit 1
 fi
+mkdir -p SOURCES
 br=$(cat .git/HEAD |awk -F'/' '{print $3}' )
 while read a ; do
   fsha=$( echo ${a}  | cut -f1 -d\ )
-- 
1.7.1




More information about the CentOS-devel mailing list