ketchup: fixed braindead untested safety check

This commit is contained in:
Jukka Heino 2006-05-01 01:20:22 +00:00
parent 98af9fda67
commit 8e1a8abb5a
3 changed files with 17 additions and 2 deletions

View File

@ -1 +1,2 @@
6fbc5e50eea7e93e982aba036ae9b3ad ketchup-0.9.7.tar.bz2
585b99a08fdb1d695add96749473761b ketchup.patch

View File

@ -6,10 +6,12 @@
name=ketchup
version=0.9.7
release=1
source=(http://www.selenic.com/$name/$name-$version.tar.bz2)
release=2
source=(http://www.selenic.com/$name/$name-$version.tar.bz2 \
$name.patch)
build() {
patch < $SRC/$name.patch
install -D -m 0755 $name $PKG/usr/bin/$name
install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
}

12
ketchup/ketchup.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nru ketchup-orig/ketchup ketchup/ketchup
--- ketchup-orig/ketchup 2006-04-24 19:35:28.000000000 +0300
+++ ketchup/ketchup 2006-05-01 04:18:20.000000000 +0300
@@ -728,7 +728,7 @@
except:
a = None
-if os.listdir("."):
+if not a and os.listdir("."):
error("Can't find kernel version for non-empty directory")
sys.exit(-1)