aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-27 10:29:19 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-27 10:29:19 +0000
commit80f72f259f0c49a0e0c736445d337a9514b45cb4 (patch)
treeadb821b4c1d660fc9245ebe3cd0f28e1a0110f8f
parent3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f (diff)
downloadrpmdrake-80f72f259f0c49a0e0c736445d337a9514b45cb4.tar
rpmdrake-80f72f259f0c49a0e0c736445d337a9514b45cb4.tar.gz
rpmdrake-80f72f259f0c49a0e0c736445d337a9514b45cb4.tar.bz2
rpmdrake-80f72f259f0c49a0e0c736445d337a9514b45cb4.tar.xz
rpmdrake-80f72f259f0c49a0e0c736445d337a9514b45cb4.zip
ensure verion as reported by rpmdrake --version is uptodate (#29840)
-rw-r--r--Makefile1
-rwxr-xr-xRpmdrake/init.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 698fc58d..a51f5f72 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ install: $(ALL)
mkdir -p $(PERL_VENDORLIB)/Rpmdrake
install -m 644 rpmdrake.pm $(PERL_VENDORLIB)
install -m 644 Rpmdrake/*.pm $(PERL_VENDORLIB)/Rpmdrake
+ perl -pi -e "s/version = 1/version=$(VERSION)/" $(PERL_VENDORLIB)/Rpmdrake/init.pm
clean:
@for n in $(DIRS); do \
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index f743e9de..d01c36a4 100755
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -80,7 +80,7 @@ if ($collation_locale) {
$collation_locale =~ /UTF-8/ or setlocale(LC_COLLATE, "$collation_locale.UTF-8");
}
-my $version = '3.42';
+my $version = 1;
our %options;
foreach (@ARGV) {
/^-?-(\S+)$/ or next;