Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314247 Details for
Bug 459025
Improve package-cleanup's default leaf regex
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Improve default leaf regex, make it case insensitive
0003-Improve-default-leaf-regex-make-it-case-insensitive.patch (text/plain), 1.79 KB, created by
Ville Skyttä
on 2008-08-13 19:55:22 UTC
(
hide
)
Description:
Improve default leaf regex, make it case insensitive
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2008-08-13 19:55:22 UTC
Size:
1.79 KB
patch
obsolete
>From 5fe96eba4c6563b11155fe6cf2d225ee52b60639 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> >Date: Wed, 13 Aug 2008 22:42:38 +0300 >Subject: [PATCH] Improve default leaf regex, make it case insensitive. >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit > > >Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> >--- > package-cleanup.py | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/package-cleanup.py b/package-cleanup.py >index 34d8665..152e873 100755 >--- a/package-cleanup.py >+++ b/package-cleanup.py >@@ -371,9 +371,9 @@ def parseArgs(): > parser.add_option("--leaves", default=False, dest="leaves",action="store_true", > help='List leaf nodes in the local RPM database') > parser.add_option("--all", default=False, dest="all",action="store_true", >- help='When listing leaf nodes also list leaf nodes that are not libraries') >- parser.add_option("--leaf-regex", default="(^lib.*)|(.*lib(|s)$)", >- help='A package name that matches this regular expression is a leaf') >+ help='When listing leaf nodes also list leaf nodes that do not match leaf-regex') >+ parser.add_option("--leaf-regex", default="(^(compat-)?lib.+|.*libs?[\d-]*$)", >+ help='A package name that matches this regular expression (case insensitively) is a leaf') > > parser.add_option("--exclude-devel", default=False, action="store_true", > help='When listing leaf nodes do not list development packages') >@@ -420,7 +420,7 @@ def main(): > sys.exit(0) > > if (opts.leaves): >- listLeaves(my, opts.all, re.compile(opts.leaf_regex), >+ listLeaves(my, opts.all, re.compile(opts.leaf_regex, re.IGNORECASE), > opts.exclude_devel, opts.exclude_bin) > sys.exit(0) > >-- >1.5.5.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 459025
: 314247