Charles Steinkuehler wrote:

Excludes override includes of the same specificity (this is a feature of tar). You can read up on tar (google for man/info pages), and find more details about the packaging system in the SF FAQ's:

[... Doing some reading ... thank you again Charles ... bookmarking the /index/ page of this set of doc'n for my future reference {http://sourceforge.net/docman/?group_id=13751} ...]


Bummer about tar. However there are surely some things that could done fairly easily to circumvent this if the functionality was desired. For example:
- rename *.exclude.list files to be *.exclude.list_tmp
- rename BACKING_UP_PKG.exclude.list_tmp to be BACKING_UP_PKG.exclude.list
- perform the: cat /var/lib/lrpkg/*.list /var/lib/lrpkg/*.links >>$TMP_EXCLUDE
- rename *.exclude.list_tmp file to be *.exclude.list
- continue with the backing up process


In this way the exclude files that are not related to the BACKING_UP_PKG are made to 'disappear' while the exclude list is created, then returned to their original names. No more contamination by other packages' exclude lists!

I'll leave it to the powers to be to consider if they think that this is a worthwhile exercise.

FWIW this is characterized as:

[...] a fundamental limitation with the LRP packaging system

but to me seems simple to circumvent (in terms of ignoring the /exclude/ rules of other packages). I do admit that there may be unintended/unforeseen consequences.


If the LEAF developers would be willing to implement this revised exclusion-handler (if bustage wasn't onerous) I'd be willing to do a simple regression test - backup all packages with current exclusion handling, then do a backup with the new exclusion-handler and see if any of the default 1.68-floppy-based files are any different. The only assistance I would ask is if someone could draft the code that does the renaming since:
mv *.exclude.list *.exclude.listed
doesn't do what I would expect (it doesn't work at all: e.g. "mv: unable to rename `dhcpcd.exclude.list': No such file or directory" even though dhcpcd.exclude.list is there) and I am not at all well-versed in shell scripting.


Ummmm ... one afterthought that may obviate the whole idea, or make it significantly more complex (beyond my skill/time limits) - the 'I" & 'X' lines of a PACKAGE.local file?

Thanks again Charles, and all the LEAF developers!

scott; canada


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to