how does bugzilla detect the modules versions?

Gervase Markham gerv at mozilla.org
Tue Sep 2 09:27:20 UTC 2008


Tsahi Asher wrote:
> I am having troubles installing an integration package called SCMBug
> (which is mentioned on the bugzilla add ons wiki page). for some reason
> the latest version fails to detect the version of the DBI perl module
> (returns "undef" from DBI::Version and DBI::VERSION). so i was
> wondering, how does bugzilla detects the version of a module, like DBI?
> i'm asking because bugzilla's checksetup.pl detects the version
> correctly, as it is registered in PPM (i'm running bugzilla on Windows
> Server 2003 x64, with ActivePerl 5.8.8). is there some other API SCMBug
> should be using?

See Requirements.pm, have_vers() subroutine. Basically, it's built around:

eval "require $module;";

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list