diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-03-17 15:00:59 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-03-17 16:30:28 +0000 |
commit | 0d972536ef25a958c2e313185c90048012617c28 (patch) | |
tree | fc775e5cb8bd57ce3d5a1ca8bb80876b605bcba6 | |
parent | f1ebbc35f680d5e75a6f374d41305fca22360bfc (diff) | |
download | ybd-jonathan/test-NGI-Intel-Config-files.tar.gz |
Add debugging to find out when the files vanishjonathan/test-NGI-Intel-Config-files
-rw-r--r-- | ybd/rpm.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -8,6 +8,7 @@ import sandbox import shutil import yaml import repos +import cache # Because rpm is otherwise totally broken @@ -195,9 +196,35 @@ def package_one_rpm(dn, userdata): metadir = os.path.join(system['sandbox'], '%s.meta' % name) baserockdir = os.path.join(fulldir, 'baserock') + if name == "NGI-Intel-Config": + # DEBUG INSERTION, DO NOT KEEP! + unpackdir = cache.get_cache(dn) + ".unpacked" + files = set() + for dirpath, dirnames, filenames in os.walk(unpackdir): + for d in dirnames: + files.add(os.path.join(dirpath, d)) + for n in filenames: + files.add(os.path.join(dirpath, n)) + app.log(dn, "Unpack dir contains:") + for f in sorted(files): + app.log(dn, f) + # Install the chunk we're gonna package under subdir sandbox.install(system, dn, subdir) + if name == "NGI-Intel-Config": + # DEBUG INSERTION, DO NOT KEEP! + sandboxdir = os.path.join(system['sandbox'], subdir) + files = set() + for dirpath, dirnames, filenames in os.walk(sandboxdir): + for d in dirnames: + files.add(os.path.join(dirpath, d)) + for n in filenames: + files.add(os.path.join(dirpath, n)) + app.log(dn, "sandbox dir contains:") + for f in sorted(files): + app.log(dn, f) + # Move the baserock directory out of the way, # we don't package the metadata shutil.move(baserockdir, metadir) |