The script assumes to be run inside an upstream stable repository. To
allow for a different setup, e.g. where upstream stable is only
available as a remote to a local repository, try to find the correct
upstream branch in a more sophisticated way. In case there is more than
one branch that fits the pattern, select the first one of the list.
This approach allows for the traditional setup but also enables a
different repository layout.
Signed-off-by: Manuel Diewald <email address hidden>
Acked-by: Cory Todd <email address hidden>
Signed-off-by: Manuel Diewald <email address hidden>
cranky: open: do not modify state when combining --dry-run and --reuse-abi
cranky open --reuse-abi modifies $DEBIAN/abi/version and adds it to the
index irrespectively whether --dry-run is passed or not. This will also
cause future invocations of cranky open to refuse to run since $DEBIAN
will not be clean.
Change the script to respect --dry-run in all cases and leave the tree
unaltered without having to reset the state of the tree.
Signed-off-by: Manuel Diewald <email address hidden>
Acked-by: Cory Todd <email address hidden>
Signed-off-by: Manuel Diewald <email address hidden>