os.system calls the user's shell, and is not directly checking for errors.
This should raise an error when cpio or rpm2cpio fail, or if they can't
be found.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
When we used `create_rpm_git_repo.py --local`, there may be no remote
to pull from yet.
Should indeed have been part of c2d89af47b.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
I was regularly losing time debugging this script exploding when just
forgetting to use `-c`. Switching back to `master` after making changes
and NOT committing them has just NO WAY to ever work.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
Makes the script fully-local by default, providing a way to import on
local branches before we know if we want to published them.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>