#778943 gitolite3: gitolite package doesn't run the proper gitolite upgrade procedure on package upgrade

Package:
gitolite3
Source:
gitolite3
Submitter:
Christoph Anton Mitterer
Date:
2015-02-22 00:48:06 UTC
Severity:
important
#778943#5
Date:
2015-02-22 00:44:58 UTC
From:
To:
Hi.

I was just going through the documentation of gitolite3,
and then had a short glance over the maintainer scripts.


It seems our setup right now is the following.
The package unpacks and places the actual code files to
/usr/somewhere.

*If* an adminkey was given, it lookes whether $GITDIR/.gitolite.rc
exists and then does the admin PK setup.


Now comparing this with:
http://gitolite.com/gitolite/install.html

Okay obviously we don't need gitolite/install since we do this
via the package
=> so initial installation looks fine.



But the upgrade procedure is not really covered by the debian
package:
Quoting http://gitolite.com/gitolite/install.html#upgrading :
"gitolite setup" when package upgrades are done.

I guess this might be necessary for any customisations that upstream
wants to do on upgrades.
Think especially about the:
/var/lib/gitolite3/.gitolite/hooks/common/update
/var/lib/gitolite3/.gitolite/hooks/gitolite-admin/post-update
These are not symlinks, if anything on them would change,
existing installations could never get updated.


Cheers,
Chris.