diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-15 17:48:16 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-15 17:48:16 +0200 |
commit | 327a2aa64dc2a386dd3fde92d9b85fdc3c9b3803 (patch) | |
tree | bc54d622d7023cf70605bb6ea61ef744ea10142b /bin | |
parent | 044651ef69e78a9aae7b943e3ce75a50e6ac9653 (diff) | |
download | genpkg-327a2aa64dc2a386dd3fde92d9b85fdc3c9b3803.tar.gz genpkg-327a2aa64dc2a386dd3fde92d9b85fdc3c9b3803.tar.xz |
Changes to custom vars in mods must persist.
For each var in the customvars PKGDATA field, we must
be sure changes to them in a package mod are written
to the new PKGDATA stream.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/modpkg | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -7,7 +7,8 @@ set pbfields {pkgname pkgver pkgrel pkgdesc pkgbase groups arch backup depends makedepends checkdepends optdepends conflicts provides replaces - options} + options + dir ver} set pbfuncs {build check package} set dotfuncs {pre_install post_install pre_upgrade post_upgrade @@ -167,5 +168,10 @@ foreach name $pbfields { set pkgdata($name) [$modi eval set $name] } } +if {[info exists pkgdata(customvars)]} { + foreach cvar $pkgdata(customvars) { + set pkgdata($cvar) [$modi eval set $cvar] + } +} printfields stdout |