Logging, backup and undo

Aperta
#311 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@infracaninophile ci sta già lavorando.

Dal 15/6/2013.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

feature longterm

Here's a nice-to-have idea.

  • Create a logging table in local.sqlite to record all actions that modify the locally installed package set
  • Any time a package is deleted or replaced, create a backup tarball and stash it away under /var/cache/pkg/backup
  • New commands pkg history and pkg undo
  • New config item: PKG_UNDO_LEVEL (integer) -- number of package history operations to be able to undo
  • Extend pkg clean to clear out old package backups according to PKG_UNDO_LEVEL

If we want to get fancy and crunch down on space usage, the backup package could contain just the files that differ between old and new versions.

More complex than it seems. If initially package bar-1.00 depends on foo-1.00, and after update we have bar-2.00 depends on foo-2.00, then reverting the foo-1.00 -> foo-2.00 update implies reverting the bar-1.00 to bar-2.00 update and vice-versa.

Lingua principale
C
Stelle
835
Fork
313
Merge medio
3g 7h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di freebsd/pkg

Tutte le issue di freebsd/pkg

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.