From 710dbc8293706ab004326ce9b882bceb6e8cca93 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 28 Mar 2018 15:20:25 -0600 Subject: debian/new-upstream-snapshot: remove from package. This is no longer managed in the packaging branches. --- debian/README.source | 7 +- debian/changelog | 6 ++ debian/new-upstream-snapshot | 170 ------------------------------------------- 3 files changed, 10 insertions(+), 173 deletions(-) delete mode 100755 debian/new-upstream-snapshot (limited to 'debian') diff --git a/debian/README.source b/debian/README.source index df79a3eb..3db12bd8 100644 --- a/debian/README.source +++ b/debian/README.source @@ -18,9 +18,10 @@ Stable release branches are also available in ubuntu/ Patches in debian/patches are stored un-applied. == New snapshot == -To pull a new upstream snapshot: - - ./debian/new-upstream-snapshot ../trunk +Upstream maintains a script to handle new upstream snapshots at: + https://github.com/cloud-init/qa-scripts/ +Its usage is like: + new-upstream-snapshot master == Cherry Pick == To cherry pick an upstream commit: diff --git a/debian/changelog b/debian/changelog index 3bf12ffb..2872eb9b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cloud-init (18.2-0ubuntu1~16.04.2) UNRELEASED; urgency=medium + + * debian/new-upstream-snapshot: Remove script, now maintained elsewhere. + + -- Scott Moser Wed, 28 Mar 2018 16:09:50 -0400 + cloud-init (18.2-0ubuntu1~16.04.1) xenial-proposed; urgency=medium * Drop the following cherry picks in debian/patches. They are now diff --git a/debian/new-upstream-snapshot b/debian/new-upstream-snapshot deleted file mode 100755 index 6ad8af61..00000000 --- a/debian/new-upstream-snapshot +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/sh - -TEMP_D="" -CR=' -' -error() { echo "$@" 1>&2; } -fail() { [ $# -eq 0 ] || error "$@"; exit 1; } -Usage() { -cat <&2 - if git merge-base --is-ancestor "$commit" "$from_ref"; then - drops="${drops} debian/patches/$bname" - fi - ;; - *) echo "$bname${extra:+ ${extra}}";; - esac - done < $dpseries > "${TEMP_D}/series" - drops=${drops# } - if [ -n "$drops" ]; then - cp "${TEMP_D}/series" "$dpseries" || - fail "failed copying to $dpseries" - if [ ! -s $dpseries ]; then - git rm --force "$dpseries" || - fail "failed removing empty $dpseries: git rm $dpseries" - fi - msg="drop cherry picks before merge from ${from_ref} at $new_upstream_ver" - msg="$msg${CR}${CR}drop the following cherry picks:" - for file in $drops; do - git rm "$file" || fail "failed to git rm $file" - msg="${msg}$CR $file" - done - git commit -m "$msg" "$dpseries" $drops - fi -fi - -git merge "${from_ref}" -m "merge from $from_ref at $new_upstream_ver" || - fail "failed: git merge ${from_ref} -m 'merge from $from_ref ..'" -clog="${TEMP_D}/changelog" -gitlog="${TEMP_D}/gitlog" - -git log --first-parent --no-decorate --format=full \ - "${prev_pkg_hash}..${from_ref}" > "$gitlog" || - fail "failed git log ${prev_pkg_hash}..${from_ref}" - -cat >> "$clog" <> "$clog" || - fail "failed git_log_to_dch" -cat >> "$clog" < $(date -R) - -EOF - -cat "$clog" "debian/changelog" > "$TEMP_D/newlog" && - cp "$TEMP_D/newlog" "debian/changelog" || - fail "failed replacing debian/changelog" - -dch -e || fail "dch -e exited $?" - -git diff - -echo -n "Commit this change? (Y/n): " -read answer || fail "failed to read answer" -case "$answer" in - n|[Nn][oO]) exit 1;; -esac - -msg="update changelog (new upstream snapshot $new_upstream_ver)." -git commit -m "$msg" debian/changelog || - fail "failed to commit '$msg'" -- cgit v1.2.3