Skip to content
Snippets Groups Projects
Commit 35862675 authored by Walter Lozano's avatar Walter Lozano
Browse files

rebase-pkg: Support native packages


Native packages don't have an upstream branch, so check its existence
before trying to branch from them.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent bc7a7e6d
Branches main
No related tags found
1 merge request!250rebase-pkg: Support native packages
Pipeline #921478 failed
......@@ -83,8 +83,11 @@ else
PRJ_ID=${PRJ_ID_ORI}
fi
# 3. Branch upstream/trixie from upstream/bookworm
python-gitlab project-branch create --project-id ${PRJ_ID} --branch ${NEW_UPSTREAM_BRANCH} --ref ${OLD_UPSTREAM_BRANCH}
# 3. Branch upstream/trixie from upstream/bookworm if it is present
if python-gitlab project-branch get --project-id ${PRJ_ID} --name ${OLD_UPSTREAM_BRANCH}
then
python-gitlab project-branch create --project-id ${PRJ_ID} --branch ${NEW_UPSTREAM_BRANCH} --ref ${OLD_UPSTREAM_BRANCH}
fi
# 4. Branch debian/trixie from debian/bookworm
python-gitlab project-branch create --project-id ${PRJ_ID} --branch ${NEW_DEBIAN_BRANCH} --ref ${OLD_DEBIAN_BRANCH}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment