From 327a2aa64dc2a386dd3fde92d9b85fdc3c9b3803 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Tue, 15 May 2012 11:48:16 -0400 Subject: 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. --- bin/modpkg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/modpkg b/bin/modpkg index f1c8c90..cc3f234 100755 --- a/bin/modpkg +++ b/bin/modpkg @@ -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 -- cgit v1.2.3-24-g4f1b