Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2017-10-06 19:58:10 +0300
committerAlexis Christoforides <alexis@thenull.net>2017-10-06 19:58:10 +0300
commitd7de09ce59af7b172e6533eafdafb01b131f6944 (patch)
tree83862a59f74d5c782eef414ab1d260e1516f210b
parent683e53ee05bf5c4772f15ca9452c35d21d2ba848 (diff)
Don't count symlink targets when calculating package size
-rw-r--r--bockbuild/package.py3
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')