[Koha-bugs] [Bug 13758] KOHAVERSION should be statically set
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 17 19:17:19 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13758
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #36962|0 |1
is obsolete| |
--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 36963
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36963&action=edit
Bug 13758: Koha::Version introduced (counterpatch)
This patch introduces a trivial package: Koha::Version. It only contains
a constant: VERSION. It is set the current version number.
The idea is that we stop relying on calling the kohaversion.pl script to get
the current version number. The workflow for RM/RMaints versioning their
updates
should be slightly changed, but overall is the same effort.
To test:
1 - Run
$ perl Makefile.PL
(it doesn't matter which version, just continue till the end)
=> SUCCESS: The printed version, is the correct one (3.19.00.016).
2 - Tweak the Koha/Version.pm file, shifting the version number
- Launch the opac interface
=> SUCCESS: The OPAC shows the maintenance page
- Launch the intranet:
=> SUCCESS: You are offered the update
Those are the most important use cases, because the rest just uses
C4::Context->KOHAVERSION()
to access the version number, which is proven to work by the use cases.
Edit: The commit message got truncated at some point, probably because I
recovered the version
prior to completing the commit message after the power outage
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list