From 6963781bdd5c0b2cbf617345d9573e989c56bd2f Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 28 Jul 2006 15:28:05 +0000 Subject: Bug 344855: Create a subroutine that does all of checksetup's requirements checking Patch By Max Kanat-Alexander (module owner) a=myk --- Bugzilla/Constants.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 8a57b343a..0bbbfa7d5 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -109,6 +109,7 @@ use File::Basename; BUG_STATE_OPEN DB_MODULE + ROOT_USER ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -298,6 +299,8 @@ use constant DB_MODULE => { name => 'PostgreSQL'}, }; +use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root'; + sub bz_locations { # We know that Bugzilla/Constants.pm must be in %INC at this point. # So the only question is, what's the name of the directory -- cgit v1.2.3-24-g4f1b