Closed
Bug 375287
Opened 19 years ago
Closed 19 years ago
Remove the version check in contrib/merge-users.pl
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: bugzilla, Assigned: bugzilla)
Details
Attachments
(1 file, 1 obsolete file)
|
628 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20061201 Firefox/2.0.0.2 (Ubuntu-feisty)
Build Identifier: 3.0-RC1
The contrib/merge-users.pl script doesn't understand about bugzilla 3.x.
Reproducible: Always
Steps to Reproduce:
1. run ./contrib/merge-users.pl
Actual Results:
You are using Bugzilla 3.0rc1 but Bugzilla 2.20 - 2.23 is required.
Expected Results:
it should have run.
--- merge-users.pl Sun Mar 25 07:41:37 2007
+++ merge-users.pl_3.x Sun Mar 25 07:40:35 2007
@@ -63,7 +63,7 @@
# We require Bugzilla 2.20 or higher (including 2.22+).
my $current_version = BUGZILLA_VERSION;
-if ($current_version =~ /^2\.2[0123]/) {
+if ($current_version =~ /^(2\.2[0123])|3\.\d+/) {
print "OK, you are using Bugzilla $current_version\n"
}
else {
Comment 2•19 years ago
|
||
You know what? Remove this check completely. I added it in bug 188264 to make sure the script is really up-to-date for the given Bugzilla version, but you just demonstrated why it was not a good idea. And writing 3\.\d+ means "accept everything", so we can as well drop this check.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Other → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
Version: unspecified → 3.0
haha, yea, I just wanted it to run. seemed to work fine. maybe the regex shouldn't be a regex, and just see if the value is > 2.2:
if ( $current_version > 2.2 ) {
Comment 4•19 years ago
|
||
No need. Remove this check, attach a patch and I will review it. :)
Attachment #259584 -
Attachment is obsolete: true
Comment 6•19 years ago
|
||
Comment on attachment 259892 [details] [diff] [review]
remove check for bugzilla version
Thanks for the patch. r=LpSolit
Attachment #259892 -
Flags: review+
Updated•19 years ago
|
Assignee: administration → bugzilla
Flags: approval3.0+
Flags: approval+
Comment 7•19 years ago
|
||
tip:
Checking in contrib/merge-users.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/merge-users.pl,v <-- merge-users.pl
new revision: 1.4; previous revision: 1.3
done
3.0 RC1:
Checking in contrib/merge-users.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/merge-users.pl,v <-- merge-users.pl
new revision: 1.3.2.1; previous revision: 1.3
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Summary: merge-users.pl not updated for 3.0 → Remove the version check in contrib/merge-users.pl
You need to log in
before you can comment on or make changes to this bug.
Description
•