summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-15 17:48:16 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-15 17:48:16 +0200
commit327a2aa64dc2a386dd3fde92d9b85fdc3c9b3803 (patch)
treebc54d622d7023cf70605bb6ea61ef744ea10142b
parent044651ef69e78a9aae7b943e3ce75a50e6ac9653 (diff)
downloadgenpkg-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.
-rwxr-xr-xbin/modpkg8
1 files changed, 7 insertions, 1 deletions
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