diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-12-29 22:45:04 +0100 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-12-29 22:45:04 +0100 |
commit | c439dc2661ebc48b5fee76f06afd07c187eba860 (patch) | |
tree | 219d25b004a81b2031adac0ad7593c0ffe2b56af /lib/templ | |
parent | c5ad5a7c7bddc71e0e00a7cd5b6a5ccd92841af3 (diff) | |
download | genpkg-c439dc2661ebc48b5fee76f06afd07c187eba860.tar.gz genpkg-c439dc2661ebc48b5fee76f06afd07c187eba860.tar.xz |
Relocate pkgverfmt logic in pbfields.
Diffstat (limited to 'lib/templ')
-rwxr-xr-x | lib/templ/pbfields | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/templ/pbfields b/lib/templ/pbfields index 18155a0..5e7844c 100755 --- a/lib/templ/pbfields +++ b/lib/templ/pbfields @@ -38,6 +38,10 @@ arrfield[$1] { } END { + if(pkgverfmt){ + output["pkgver"] = sprintf(pkgverfmt, output["pkgver"]) + } + if(!maintainer && !packager) { packager = "Anonymous" } if(maintainer) print "# Maintainer: " maintainer else if(packager) print "# Packager: " packager @@ -47,9 +51,6 @@ END { for(i=1; i<=max; i++){ name = fields[i] if(name in output){ - if(name == "pkgver" && pkgverfmt){ - output["pkgver"] = sprintf(pkgverfmt, output["pkgver"]) - } print name, output[name] } } |