cmd-sign: conditionalize ostree commit import
Let's only re-import back into tmp ostree repo if it exists. In some
cases the build may have happened remotely and the tmp repo won't exist.
@@ -197,6 +197,7 @@ def robosign_ostree(args, s3, build, gpgkey):
# and finally add it to the tmprepo too so that buildextend-(qemu|metal)
# will pull it: we could just nuke the repo to force a re-untar, but it
# might nuke a more recent commit if we're not operating on the latest
+ if os.path.exists('tmp/repo'):
import_ostree_commit('tmp/repo', builddir, build, force=True)
