Ticket #160 (closed task: fixed)

Opened 3 years ago

Last modified 2 years ago

Support for incremental package fixes

Reported by: pjf Assigned to:
Priority: normal Milestone: 3.0
Component: Flatconf Version: 2.0
Severity: major Keywords:
Cc:

Description (Last modified by pjf)

Sometimes it's needed to update a single file in a package without rebuilding it completely and requiring users to fetch a big tarball.

I think we could add one more number after pkgrel, let's call it fixrel (from "fix release"). Normally, each package pkgver-pkgrel version should have fixrel set to 1 and contain all the files. However, when one wants to fix some small bug, he manually creates a tarball containing only the fixed file(s) and sets fixrel to >1. pkg then will fetch all fixes for given pkgver-pkgrel tuple, starting from 2, and install them incrementally. When there's new pkgver-pkgrel package version, fixrel counter is resetted to 1 and such package should be used for installation/upgrade.

Some restrictions/notes for fixrel>1 packages:

  • contents of tarball will be installed by simple tar -C / -xzf ...
  • can't contain any /.* files, except for /.FIX script which will be run once and deleted
    • pkg will automatically save current fixrel in /var/pkg/<package>/fixrel

Notes:

  • package tools should check when installing a fixrel>1 package if the fixrel=1 (full) package is already installed

Change History

03/17/07 18:16:46 changed by pjf

  • owner deleted.

06/04/07 03:16:57 changed by pjf

  • description changed.

Make hot fixes more flexible.

06/04/07 04:04:13 changed by pjf

Started in r1270.

06/05/07 01:47:27 changed by pjf

Important remark: remember to make detailed comments in FIX-*.sh scripts what does this fixrel fix.

All FIX-*.sh should be held in a package directory until (pkgver, pkgrel) touple changes.

Remember to commit all FIX-*.sh scripts, too.

06/05/07 02:24:18 changed by pjf

  • description changed.

We won't need this extension.

06/10/07 00:00:51 changed by pjf

  • status changed from new to closed.
  • resolution set to fixed.

Done along with a few new cool features in Fakebox's rev 8:

http://projects.asn.pl/fakebox/changeset/8

Few changes in Lintrack repo: r1282

03/15/08 15:49:29 changed by pjf

  • milestone changed from 2.1rc1 to 3.0.

Milestone 2.1rc1 deleted