From 75052c969a1aa4ff481ccdd31c7b092bbc1c3f44 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Tue, 15 May 2012 13:03:59 -0400 Subject: prepkg should only print to stdout. --- bin/prepkg | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'bin') diff --git a/bin/prepkg b/bin/prepkg index 513f4bb..11df1fa 100755 --- a/bin/prepkg +++ b/bin/prepkg @@ -22,18 +22,6 @@ basicmeta() return 0 } -prependmeta() -{ - if basicmeta | cat - "$1" > "$1.new" - then - mv "$1.new" "$1" - return 0 - else - rm "$1.new" - return 1 - fi -} - case $# in 0) echo "usage: $prog [package name]" 1>&2 exit 1 @@ -52,12 +40,8 @@ do prepret=$? case "$prepret" in - 0) if prependmeta PKGDATA - then - exit 0 - else - err "failed to prepend to PKGDATA" - fi ;; + 0) basicmeta + exit 0 ;; 1) err "$flav encountered an error" ;; 2) ;; # loop *) err "$flav returned error code $metaret" ;; -- cgit v1.2.3-24-g4f1b