From 3e761dc5ad3699c24c182400a76ed3d532e1e7d5 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Thu, 14 Jun 2012 20:09:18 -0400 Subject: Comment was in the wrong spot. --- bin/genpkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/genpkg b/bin/genpkg index 22ec225..d9ffcc5 100755 --- a/bin/genpkg +++ b/bin/genpkg @@ -100,8 +100,6 @@ do [ -d PKGTREE ] && rm -rf PKGTREE mkdir PKGTREE - # Duplicate the version in case modpkg modifies it. vervar will remove a - # redundant ver field that is the same as pkgver. trap 'rm -f PKGDATA' 1 2 15 PREPSPATH="$prepd" PKGVAR="$vard" prepkg "$pkg" > PKGDATA ret=$? @@ -116,6 +114,8 @@ do if [ -f "$mod" -a -r "$mod" ] then trap 'rm -f PKGDATA.new' 1 2 15 + + # Duplicate the version in case modpkg modifies it. if cat PKGDATA | dupver | modpkg "$mod" > PKGDATA.new then echo "Modified with $mod." 1>&2 @@ -124,6 +124,7 @@ do echo "$prog: modpkg failed." 1>&2 [ "$GENPKGDBG" ] || rm PKGDATA.new fi + trap '' 1 2 15 fi -- cgit v1.2.3-24-g4f1b