Hi Kristis, catdir(.., 'lib' ) is just a replacement of what we already had before: ...installation_directory() . '/lib' (File::Spec is supposed to be more robust in terms of OS compatibility. It's standard module and is already used by other Scmbug modules - i.e. we're not introducing new dependency).
Just inst_dir is not enough because Bugzilla may depend on additional libraries which are in <bugzilla_root>/lib only. It won't be able to load if those modules can't be loaded (unless they're also globally available): http://www.bugzilla.org/releases/4.0/release-notes.html#v32_code_lib Regards, Yavor 2011/3/15 Thorsten Schöning <[email protected]> > Guten Tag Kristis Makris, > am Dienstag, 15. März 2011 um 01:25 schrieben Sie: > > > Instead of just: > > if ( $self->>is_version_gte( $VERSION_3_2_0 ) ) { > > eval "use lib \"$inst_dir\""; > > } > > > ?? I do not understand why catdir was invoked. Why is the code trying to > > list the directories in the $inst_dir? > > It doesn't list anything, catdir builds paths in an OS independent > way, e.g. using / vs. \. "use lib" must be used with the lib-directory > of Bugzilla because "use lib" doesn't include paths recursive, but just > subdirectories with a specified naming convention. And the lib-dir of > Bugzilla is $inst_dir/lib or $inst_dir\lib, what is built by catdir. > > http://perldoc.perl.org/File/Spec/Unix.html > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning > AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig > > Telefon: Potsdam: 0331-743881-0 > E-Mail: [email protected] > Web: http://www.am-soft.de > > AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam > Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow > > _______________________________________________ > scmbug-users mailing list > [email protected] > http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users >
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
