build:dist: make use of file / distfile more obvious in handling of DIST_FILES in...
authorMichael Adam <obnox@samba.org>
Wed, 12 Sep 2012 21:45:50 +0000 (23:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Sep 2012 21:53:09 +0000 (23:53 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
buildtools/wafsamba/samba_dist.py

index a2c75593f27ff7857f104f6e939ed3a2e741145b..30902c4f0499bc7c63b2b543e62ce77db037d08a 100644 (file)
@@ -175,11 +175,8 @@ def dist(appname='',version=''):
 
             absfile = os.path.join(srcdir, file)
 
-            if destfile != file:
-                file = destfile
-
-            fname = dist_base + '/' + file
-            add_tarfile(tar, fname, absfile, file)
+            fname = dist_base + '/' + destfile
+            add_tarfile(tar, fname, absfile, destfile)
 
     tar.close()