Closed Bug 530767 Opened 15 years ago Closed 15 years ago

Allow for CPAN distribution of extensions

Categories

(Bugzilla :: Extensions, enhancement)

3.4.4
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

With the way that extensions are written now, it wouldn't be too hard to allow for CPAN distribution of extensions. I think we'd mostly just need:

1) A way to let them specify their template directory.
2) A way to load them when they aren't in our extensions/ directory.
3) Something to account for the fact that Config.pm will have to work differently.
Component: Bugzilla-General → Extensions
Assignee: general → extensions
Attached patch v1Splinter Review
This does the bare minimum--it doesn't yet handle the fact that template paths will be different. But it does allow installing modules from CPAN. I tested by converting BmpConvert to a format that could be distributed on CPAN and putting it in Bugzilla's lib/ dir, and it loaded fine.
Assignee: extensions → mkanat
Status: NEW → ASSIGNED
Attachment #414453 - Flags: review+
Checking in Bugzilla/Extension.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Extension.pm,v  <--  Extension.pm
new revision: 1.4; previous revision: 1.3
done
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v  <--  Filesystem.pm
new revision: 1.42; previous revision: 1.41
done
Checking in Bugzilla/Install/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Util.pm,v  <--  Util.pm
new revision: 1.24; previous revision: 1.23
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: