From eadbe0af373404727826a00d1248ef4aa9c96df9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 22 May 2014 10:00:42 +0200 Subject: [PATCH] contrib/makerepo: encode the base commits for certain known packages Makerepo tries to detect the upstream base commit, in order to base the history on the upstream commit. Hardcode a list of known base commits and match them depending on the content of the sources file. Signed-off-by: Thomas Haller --- contrib/fedora/utils/makerepo.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/contrib/fedora/utils/makerepo.sh b/contrib/fedora/utils/makerepo.sh index 8cb75a82ff..2fd0ee9a7d 100755 --- a/contrib/fedora/utils/makerepo.sh +++ b/contrib/fedora/utils/makerepo.sh @@ -162,6 +162,29 @@ pushd "$DIRNAME" RELEASE_BASE_COMMIT="$(git rev-list -n1 --date-order --before="$DATE" origin/master 2>/dev/null)" fi fi + if [[ "x$RELEASE_BASE_COMMIT" == x ]]; then + KNOWN_BASE_COMMITS="$(cat <