summaryrefslogtreecommitdiffstats
path: root/tools/wixl/builder.vala
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-11-11 19:39:25 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-11-11 19:39:25 +0100
commitf5b7ac49999b1d843176eedb3dc880e8977a5d64 (patch)
treea4341a5800fd9c8d83080fe8c79bd8b5c213bb6f /tools/wixl/builder.vala
parenteb625982d76390fd4de6f624dac1c9040b8472ee (diff)
downloadmsitools-f5b7ac49999b1d843176eedb3dc880e8977a5d64.tar.gz
msitools-f5b7ac49999b1d843176eedb3dc880e8977a5d64.tar.xz
msitools-f5b7ac49999b1d843176eedb3dc880e8977a5d64.zip
wixl: add MsiFileHash table
Diffstat (limited to 'tools/wixl/builder.vala')
-rw-r--r--tools/wixl/builder.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 130cdf3..22233fe 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -198,6 +198,17 @@ namespace Wixl {
}
List<WixMedia> medias;
+ private void hash_files () throws GLib.Error {
+ foreach (var rec in db.table_file.records) {
+ var f = rec.get_data<WixFile> ("wixfile");
+ var component = f.parent as WixComponent;
+ if (component.in_feature.length () == 0)
+ continue;
+
+ db.table_file_hash.add_with_file (f.Id, f.file);
+ }
+ }
+
private void build_cabinet () throws GLib.Error {
var sequence = 0;
@@ -262,6 +273,7 @@ namespace Wixl {
property_update ();
shortcut_target ();
sequence_actions ();
+ hash_files ();
build_cabinet ();
return db;