wish: offer to init and commit when the etckeeper is installed

Bug #297920 reported by Andrew Sayers
4
Affects Status Importance Assigned to Milestone
etckeeper (Debian)
Fix Released
Unknown
etckeeper (Ubuntu)
Fix Released
Wishlist
Thierry Carrez

Bug Description

Binary package hint: etckeeper

When etckeeper is first installed, you need to run `etckeeper init` and `etckeeper commit 'Initial commit'` before etckeeper is activated. Presumably this is to give you chance to pick your preferred version control system, but I had (perhaps naively) expected it to do that itself.

When run interactively, could the post-install script check which version control programs are available, offer the user a choice of packages if there's more than one, then offer to init and commit? I'd be willing to help out with the script to implement that.

Related branches

Revision history for this message
Daniel Hahler (blueyed) wrote :

Sounds good.
Please contact Joey Hess, the maintainer of etckeeper about this. Either by email or through the Debian Bug Tracking System.

Changed in etckeeper:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Thierry Carrez (ttx) wrote :

Fixed in >=0.32

Changed in etckeeper:
status: Unknown → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote :

This was only partially implemented in etckeeper upstream... The version I just merged in Karmic does "etckeeper init" but not "etckeeper commit". I'll followup with Joey.

Thierry Carrez (ttx)
Changed in etckeeper (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package etckeeper - 0.37ubuntu1

---------------
etckeeper (0.37ubuntu1) karmic; urgency=low

  * Merge from debian unstable, remaining changes:
    - etckeeper.conf, debian/control: default to bzr
  * debian/postinst: Do the initial commit at installation time (LP: #297920)
  * commit.d/50vcs-commit: Avoid etckeeper commit failure if 'hostname -f'
    fails (LP: #377265)
  * debian/cron.daily: Avoid cron emails with daily autocommits if VCS=hg
    (LP: #364344)

etckeeper (0.37) unstable; urgency=low

  * Make postinst check for the configured VCS before trying to run
    etckeeper init. Closes: #530497
  * Update French debconf translation. Closes: #530795
  * Fix typo in cruft file. Closes: #530819
  * Update Portuguese debconf translation. Closes: #528109
  * Update German debconf translation. Closes: #532346

etckeeper (0.36) unstable; urgency=low

  * Add cruft ignore file. Closes: #522513
  * Update Japanese debconf translation. Closes: #527921
  * Update Swedish debconf translation. Closes: #528575
  * Update Russian debconf translation. Closes: #528798

etckeeper (0.35) unstable; urgency=low

  * Make etckeeper uninit -f disable the prompt.
  * Uninit on purge, guarded by a debconf prompt. Closes: #527218

 -- Thierry Carrez <email address hidden> Tue, 16 Jun 2009 11:02:03 +0200

Changed in etckeeper (Ubuntu):
status: In Progress → Fix Released
Thierry Carrez (ttx)
Changed in etckeeper (Debian):
status: Fix Released → Unknown
Changed in etckeeper (Debian):
status: Unknown → New
Changed in etckeeper (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.