From e2730f6b8436eb92222246816578490834cc9015 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 15 Jun 2009 18:58:37 +0200 Subject: Revert "Make use of setup_common::get_version() in python-dmidecode.spec as well" This reverts commit b1db52e62be1a700517308877b08dbf8c5d9e1eb. This change broke rpmbuild --rebuild. So the version number cannot be set dynamically like this. Reverting back to manually updating it. --- utils/set_version | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/set_version b/utils/set_version index fcb081f..c42f6d6 100755 --- a/utils/set_version +++ b/utils/set_version @@ -35,9 +35,12 @@ case $conf in echo " ** Updating src/version.h" printf ",s/^#define VERSION \".*\"/#define VERSION \"${NEW_VERSION}\"/\nw\n" | ed src/version.h 2>/dev/null + echo " ** Updating redhat.spec" + printf ",s/^Version: .*/Version: ${NEW_VERSION}/\nw\n" | ed contrib/python-dmidecode.spec 2>/dev/null + echo - echo " ** git add src/version.h" - git add src/version.h + echo " ** git add src/version.h redhat.spec" + git add src/version.h contrib/python-dmidecode.spec git diff --cached echo echo " REMEMBER to commit this change when you have validated the result" -- cgit