[xenial/hwe] UBUNTU: Packaging: update-from-master: allow rebase to be skipped
Thadeu Lima de Souza Cascardo
cascardo at canonical.com
Wed Sep 19 07:47:30 UTC 2018
Sometimes the rebase will already be done, but the other operations are still
needed. One of those examples is when the rebase finds a conflict and needs to
be finished manually.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
---
My plan is to apply this to many other trees, where some form of
update-from-...-master exists. This should not change the way that script is
used today, but just add an option that is helpful in some cases we already
hit. So, it should not disturb the process to update kernels that we are all
used to.
---
debian.hwe/etc/update-from-bionic-master | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/debian.hwe/etc/update-from-bionic-master b/debian.hwe/etc/update-from-bionic-master
index 81b23c2daf12..2a01417f6a9e 100755
--- a/debian.hwe/etc/update-from-bionic-master
+++ b/debian.hwe/etc/update-from-bionic-master
@@ -86,10 +86,10 @@ BASE_COMMIT=`git log --pretty=one | \
if [ "${MASTER_COMMIT}" = "${BASE_COMMIT}" ]
then
echo Already up to date.
- exit 1
-fi
-
-if ! git rebase --onto ${MASTER_COMMIT} ${BASE_COMMIT}
+ if [ -z "$SKIP_REBASE" ]; then
+ exit 1
+ fi
+elif ! git rebase --onto ${MASTER_COMMIT} ${BASE_COMMIT}
then
exit 1
fi
--
2.17.1
More information about the kernel-team
mailing list