First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 140822
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: José Alberto Suárez López <bass@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rick Morra <rjm40@optonline.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
localepurge.patch diff file to add pretend and regex configuration patch Rick Morra 2006-07-17 13:12 0000 6.45 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 140822 depends on: Show dependency tree
Bug 140822 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-17 13:11 0000
I was looking to use localepurge on my Gentoo box and saw that it would be too
easy to purge locales I would rather keep. So I edited /usr/bin/localepurge to
add 2 new features:

1) A pretend option which displays the directories which would be purged.

2) The ability to use regex patterns in the locale.nopurge file; i.e.: "es.*"
would not purge any Spanish locales or "en_US.*" would not purge any US English
locales.  This is accomplished by using the locale.nopurge file as a pattern to
prune the LOCALELIST in memory, then using this pruned list to check for
directories to purge.

I am attaching the diff file between /usr/bin/localepurge (0.5.1) and my
revisions in localepurge.new

Also, while working on this, I noticed that if no options were specified on the
command line, the VERBOSE and NOCOLOR options in /etc/locale.nopurge were never
checked.  This is also addressed in the diff file.

------- Comment #1 From Rick Morra 2006-07-17 13:12:34 0000 -------
Created an attachment (id=92021) [details]
diff file to add pretend and regex configuration

------- Comment #2 From José Alberto Suárez López 2006-07-18 00:11:42 0000 -------
tahnks for the paatch, it is now in 0.5.2 :)

First Last Prev Next    No search results available      Search page      Enter new bug