[Reproducible-builds] [dh-python] 171/183: share_files: do not warn about .so with correct name
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 19 15:30:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.
commit 3f54967db458412195e41c7b45bf90f66750f91e
Author: Piotr Ożarowski <piotr at debian.org>
Date: Sun Mar 16 17:25:30 2014 +0100
share_files: do not warn about .so with correct name
---
dhpython/fs.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/dhpython/fs.py b/dhpython/fs.py
index 5404448..035804b 100644
--- a/dhpython/fs.py
+++ b/dhpython/fs.py
@@ -75,13 +75,13 @@ def share_files(srcdir, dstdir, interpreter, options):
new_name = interpreter.check_extname(i, version)
if new_name:
fpath1 = join(srcdir, new_name)
- if exists(fpath1):
- log.warn('destination file exist, '
- 'cannot rename %s to %s', fpath1_orig, fpath1)
- else:
- log.info('renaming %s to %s', fpath1_orig, fpath1)
- os.renames(fpath1_orig, fpath1)
- i = new_name
+ if exists(fpath1):
+ log.warn('destination file exist, '
+ 'cannot rename %s to %s', fpath1_orig, fpath1)
+ else:
+ log.info('renaming %s to %s', fpath1_orig, fpath1)
+ os.renames(fpath1_orig, fpath1)
+ i = new_name
fpath2 = join(dstdir, i)
if not isdir(fpath1) and not exists(fpath2):
# do not rename directories here - all .so files have to be renamed first
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git
More information about the Reproducible-builds
mailing list