[game-data-packager] 01/01: debug info: do not log calls to 'cp' that duplicates 'Found...' & 'Copying...'

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Jan 5 09:43:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit e81816feb6830c4e4f08354c616c0366cf48d017
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Jan 5 10:42:15 2016 +0100

    debug info: do not log calls to 'cp' that duplicates 'Found...' & 'Copying...'
    
    spit out fedora's "%files" entry
---
 game_data_packager/build.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 81f0689..0a1e11c 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1476,6 +1476,7 @@ class PackagingTask(object):
                  else:
                      files.add(dir)
                      break
+        logger.debug('%%files in specfile:\n%s', '\n'.join(sorted(files)))
 
         with open(specfile, 'w', encoding='utf-8') as spec:
             spec.write('Summary: %s\n' % short_desc)
@@ -1600,7 +1601,7 @@ class PackagingTask(object):
                     mkdir_p(copy_to_dir)
                 # Use cp(1) so we can make a reflink if source and
                 # destination happen to be the same btrfs volume
-                check_call(['cp', '--reflink=auto',
+                subprocess.check_call(['cp', '--reflink=auto',
                     '--preserve=timestamps', copy_from, copy_to])
 
                 if wanted.executable:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list