diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-06-01 19:34:51 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-06-01 19:34:51 +0200 |
commit | 29be38d2671db067c86e07fa6177cd14055a32ea (patch) | |
tree | 5e5dbe6b0276c76d93990af7f5ba2aa0f058da37 /bin/vervar | |
parent | b3fb393e03a885c07647f23d1c54ad60a2adec3a (diff) | |
download | genpkg-29be38d2671db067c86e07fa6177cd14055a32ea.tar.gz genpkg-29be38d2671db067c86e07fa6177cd14055a32ea.tar.xz |
Fix error handling when prepkg fails.
Typo fixed in prepkg. Do not duplicate pkgver unless
we are going to modify the package. Pipes screw up
the error code returned. vervar silently ignores a
missing _ver field.
Diffstat (limited to 'bin/vervar')
-rwxr-xr-x | bin/vervar | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -26,12 +26,8 @@ END { if(error) { exit(error) } - if(!ver){ - print prog ": error: ver field is missing (or zero)" | "cat 1>&2" - exit(1) - } - if("" pkgver == ver){ + if(!ver || "" pkgver == ver){ # Don't use the $_ver variable if $pkgver and $_ver are identical. skipver = 1 vervar = "pkgver" |