slackpkg new-config not finding .new files
Hi all:
I'm having a little problem with updating some config files. If I issue the command Code:
root@slackware:~# slackpkg new-config However, Code:
root@slackware:~# find /etc -name "*.new" I've looked through the /usr/sbin/slackpkg script, and the separate slackpkg functions file called by that script at /usr/libexec/slackpkg/core-functions.sh but I didn't find anything that would explain the above issue. I'm not that experienced at scripting, though. I've also searched the net and this site without luck. Any helpful ideas out there? |
IIRC, if /etc/passwd.new has the exact same contents as /etc/passwd, you won't get the prompt. (Actually, I believe the md5sums of the files are compared for equality.) Actually, that's for all the *.new to * comparisons.
Wrong answer! See correct answers below. |
maybe they are blacklisted by slackpkg as it's highly unlikely one would want to let slackpkg update those files
edit: yes, try: Code:
grep "shadow\|passwd" /usr/libexec/slackpkg/functions.d/* |
Quote:
Code:
FILES=$(find /etc -name "*.new" ${ONLY_NEW_DOTNEW} \ |
Always a most helpful group - it is much appreciated.
That "blacklist" in /usr/libexec/slackpkg/core-functions.sh was exactly what I was looking for in the two files I initially referenced. If I could impose further, as my scripting is weak, how does that post-functions.sh file get called? I can't find a reference to it in either the slackpkg script or the /usr/libexec/slackpkg/core-functions.sh script it directly references. Mr. Cranium: Thanks, I'll save that info for another day - /etc/passwd had in fact changed, so that wasn't the issue, at least not in this particular case. |
Quote:
Code:
#======================================================================== |
Quote:
My earlier reply was pretty much spherically wrong: It is just as wrong no matter how you look at it. |
Quote:
|
Quote:
Code:
config() { |
src2pkg, IIRC, will put that in for you.
Then again, maybe I should quit while I can still see daylight out of the hole. |
All times are GMT -5. The time now is 10:56 PM. |