summaryrefslogtreecommitdiffstats
path: root/tools/wixl
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-10 17:52:05 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-11 13:10:38 +0100
commit39dec3f59e912b3a7451f2353319e9473100dec0 (patch)
tree970c5611866633f3ef28a5490ff7873e4c5cc6db /tools/wixl
parenteda9beace3caad0be71f9b7bf245ae0805d855bb (diff)
downloadmsitools-39dec3f59e912b3a7451f2353319e9473100dec0.tar.gz
msitools-39dec3f59e912b3a7451f2353319e9473100dec0.tar.xz
msitools-39dec3f59e912b3a7451f2353319e9473100dec0.zip
wixl: lookup source files using Source attributes if provided
Diffstat (limited to 'tools/wixl')
-rw-r--r--tools/wixl/builder.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 9a25737..2bc7122 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -513,9 +513,10 @@ namespace Wixl {
else if (file.Source != null)
name = Path.get_basename (file.Source);
+ var source = file.Source ?? name;
var comp = file.parent as WixComponent;
FileInfo info;
- file.file = find_file (name, out info);
+ file.file = find_file (source, out info);
var attr = FileAttribute.VITAL;
var rec = db.table_file.add (file.Id, comp.Id, name, (int)info.get_size (), attr);