aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-23 14:08:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-23 14:08:48 +0000
commitbb66d9eaf4ead2ea98cc12b40d481272b37b1a1a (patch)
tree039112b0e55c0404f37240ffb40e23f4b5223018
parentecdbc0b2c2794ebf33bf321e9ec1d266779b684d (diff)
downloadalpine-conf-bb66d9eaf4ead2ea98cc12b40d481272b37b1a1a.tar.bz2
alpine-conf-bb66d9eaf4ead2ea98cc12b40d481272b37b1a1a.tar.xz
lbu: fix for lbu package /dev/null and lbu list
lbu did bad things with your /dev/null
-rw-r--r--lbu.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/lbu.in b/lbu.in
index da8ba86..8d5042a 100644
--- a/lbu.in
+++ b/lbu.in
@@ -289,6 +289,8 @@ cmd_package() {
if [ -z "$DRYRUN" ]; then
if [ "x$pkg" = "x-" ]; then
cat "$tmppkg"
+ elif [ -b "$pkg" ] || [ -c "$pkg" ]; then
+ cat "$tmppkg" > "$pkg"
else
if cp "$tmppkg" "$pkg.new"; then
mv "$pkg.new" "$pkg"
@@ -321,6 +323,7 @@ usage: $PROGRAM list|ls
cmd_list() {
VERBOSE="-v"
+ DRYRUN="-n"
cmd_package /dev/null
}