Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 6725] New: sorcery support for testing if files are installed and track them

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 6725] New: sorcery support for testing if files are installed and track them
  • Date: Thu, 15 Apr 2004 00:54:33 -0400

http://bugs.sourcemage.org/show_bug.cgi?id=6725

Summary: sorcery support for testing if files are installed and
track them
Product: Sorcery
Version: Feature Request
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Unknown
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: hgreig AT bigpond.net.au


many spells (netkit-base, shadow, bash to name some off the top of my head)
check if files exist (mostly in /etc/*) and if they don't exist, they install
them. The problem with this is that if the file is in the protected list or
has
been modified (so prepare_install/REAP holds it) then on upgrade or rebuild,
sorcery will stop tracking it. So a resurrect of these spells (or a binary
install) will not restore/install these files.
Somehow sorcery needs to continue to track these files, without removing them
(and the users customizations) so they are always resurrected/installed.

If the file does exist, then the spell version should probably be installed to
the same place, but with a .default suffix, so if the user wants to restore to
defaults they can just cp /etc/<file>.default /etc/<file>.

Some sort of etc_cp () function could be made so the spells can just use
etc_cp <file>
and all theses points are covered.

For my recent ISO manufacture I had to chroot into the $INSTALL_ROOT rm -rf
/etc/* (with some exceptions) and then do a complete rebuild so that all the
spells tracked everything necessary for them to work.
Realistically, it is not very helpful to store a cache of a spell when it
doesn't include the configuration files within it.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 6725] New: sorcery support for testing if files are installed and track them, bugzilla-daemon, 04/15/2004

Archive powered by MHonArc 2.6.24.

Top of Page