pungi/pungi
Ken Dreyer 5acfb90b23 createrepo: handle missing product ids scm dir
Prior to this change, if the entire product IDs SCM directory was missing, pungi would crash with an error.

For example, if "ceph-3" was missing from the SCM:

    OSError: [Errno 2] No such file or directory: '/tmp/tmpMb9O6r/product_ids/ceph-3'

This occurred even if product_id_allow_missing was set to True.

Make product_id_allow_missing cover this case as well, and gracefully
skip all product IDs.

We now see the following warning in the logs instead:

    [WARNING ] No product IDs in {'scm': 'git', 'repo': 'git://example.com/rcm/rcm-metadata.git', 'dir': 'product_ids/ceph-3'}

and the compose succeeds.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2017-07-07 09:59:17 -06:00
..
compose_metadata Remove FSF address from comments 2016-09-23 10:26:43 +02:00
ostree ostree: Don't automatically create a repo 2017-06-26 17:47:35 -04:00
phases createrepo: handle missing product ids scm dir 2017-07-07 09:59:17 -06:00
wrappers variants-wrapper: Remove main() function 2017-06-27 09:36:48 +02:00
__init__.py not using 'git -C path' which is not supported by git 1.x 2016-10-25 15:53:56 +08:00
arch.py arch: Move exclu(de|sive)arch check to a function 2017-06-06 15:28:12 +02:00
checks.py pkgset: Allow populating packages from multiple koji tags 2017-06-29 08:27:34 +02:00
common.py Remove FSF address from copyright headers 2017-03-24 09:24:48 +01:00
compose.py compose: Stop duplicating variant types 2017-05-03 14:40:32 +02:00
config.py pungi: Fix reading multilib config files 2016-11-09 09:36:23 +01:00
createiso.py iso-wrapper: Remove the class 2016-10-14 09:14:51 +02:00
dnf_wrapper.py Explicitly remove all temporary files 2017-03-24 09:24:49 +01:00
gather_dnf.py gather: Don't resolve dependencies in lookaside 2017-05-29 12:55:38 +02:00
gather.py gather: Display source repo of packages 2017-06-16 12:39:04 +02:00
ks.py Fix PEP8 complaints 2017-03-24 09:24:48 +01:00
linker.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
metadata.py Not create empty skeleton dirs for empty variants 2017-03-27 17:55:54 +02:00
multilib_dnf.py Update to use python-multilib 2017-03-24 09:24:50 +01:00
multilib_yum.py multilib_yum: Remove main() function 2017-06-27 09:36:39 +02:00
notifier.py notification: Allow specifying multiple scripts 2017-06-29 08:30:56 +02:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py move translate_path from paths.py to util.py 2017-03-29 10:12:32 +08:00
profiler.py Remove shebang from non-executable files 2017-05-10 09:07:16 +02:00
util.py util: Retry resolving git branches 2017-06-06 15:31:39 +02:00