ketchup: fixed braindead untested safety check
This commit is contained in:
parent
98af9fda67
commit
8e1a8abb5a
@ -1 +1,2 @@
|
|||||||
6fbc5e50eea7e93e982aba036ae9b3ad ketchup-0.9.7.tar.bz2
|
6fbc5e50eea7e93e982aba036ae9b3ad ketchup-0.9.7.tar.bz2
|
||||||
|
585b99a08fdb1d695add96749473761b ketchup.patch
|
||||||
|
@ -6,10 +6,12 @@
|
|||||||
|
|
||||||
name=ketchup
|
name=ketchup
|
||||||
version=0.9.7
|
version=0.9.7
|
||||||
release=1
|
release=2
|
||||||
source=(http://www.selenic.com/$name/$name-$version.tar.bz2)
|
source=(http://www.selenic.com/$name/$name-$version.tar.bz2 \
|
||||||
|
$name.patch)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
patch < $SRC/$name.patch
|
||||||
install -D -m 0755 $name $PKG/usr/bin/$name
|
install -D -m 0755 $name $PKG/usr/bin/$name
|
||||||
install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
|
install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
|
||||||
}
|
}
|
||||||
|
12
ketchup/ketchup.patch
Normal file
12
ketchup/ketchup.patch
Normal 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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user