From dd791da247c6fd6cfb6bfaeb02a93da5150f4e0c Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 10 Sep 2001 19:00:17 +0000 Subject: [PATCH] Adds a better check for the version. --- gbootroot_pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gbootroot_pkg b/gbootroot_pkg index 43b6e93..b554fb3 100755 --- a/gbootroot_pkg +++ b/gbootroot_pkg @@ -29,11 +29,11 @@ my $email = "freesource\@users.sourceforge.net"; my $name = "Jonathan Rosenbaum"; # Other vars -my $version; my ($real_uid, $real_gid) = (stat($user_home))[4,5]; # Find the version +my $version; open(CVS, "$gbootroot_cvs/$prog") or die "Couldn't find $prog in $gbootroot_cvs: $!\n"; while () { @@ -132,8 +132,8 @@ close (CHANGELOG); my $stop; foreach (@changelog) { - if (/$version/) { - print "\nThe changelog for $version already exists, this may mean\n" . + if (/$version-$revision/) { + print "\nThe changelog for $version-$revision already exists, this may mean\n" . "that this is the first invocation or that you haven't changed the\n" . "version in the $prog program.\n"; $stop = 1;