aboutsummaryrefslogtreecommitdiffstats
path: root/lbu
diff options
context:
space:
mode:
Diffstat (limited to 'lbu')
-rw-r--r--lbu8
1 files changed, 7 insertions, 1 deletions
diff --git a/lbu b/lbu
index 632608d..72e8a7a 100644
--- a/lbu
+++ b/lbu
@@ -273,7 +273,13 @@ cmd_package() {
# actually commit unless dryrun mode
if [ $rc -eq 0 ]; then
- [ -z "$DRYRUN" ] && cp "$tmppkg" "$pkg"
+ if [ -z "$DRYRUN" ]; then
+ if [ "x$pkg" = "x-" ]; then
+ cat "$tmppkg"
+ else
+ cp "$tmppkg" "$pkg"
+ fi
+ fi
vecho "Created $pkg"
else
rm -f "$CURRENT_TDB"