diff options
author | Alexis Christoforides <alexis@thenull.net> | 2017-10-06 19:58:10 +0300 |
---|---|---|
committer | Alexis Christoforides <alexis@thenull.net> | 2017-10-06 19:58:10 +0300 |
commit | d7de09ce59af7b172e6533eafdafb01b131f6944 (patch) | |
tree | 83862a59f74d5c782eef414ab1d260e1516f210b | |
parent | 683e53ee05bf5c4772f15ca9452c35d21d2ba848 (diff) |
Don't count symlink targets when calculating package size
-rw-r--r-- | bockbuild/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bockbuild/package.py b/bockbuild/package.py index ec9be67..a684545 100644 --- a/bockbuild/package.py +++ b/bockbuild/package.py @@ -554,7 +554,8 @@ class Package: warn( 'Different file exists in package already: ''%s''' % relpath ) files.append(relpath) - size = size + os.path.getsize(path) + if os.path.islink(path): + size = size + os.path.getsize(path) files.sort() is_changed(files, artifact + '.files') |