Bug 653011 - plugins/cs.py uses os.path.exists with a glob
Summary: plugins/cs.py uses os.path.exists with a glob
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: 0xFFFF
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Pierre Carrier
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-14 04:21 UTC by Pierre Carrier
Modified: 2010-11-15 19:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-15 19:33:39 UTC
Type: ---


Attachments (Terms of Use)
Proposed patch (633 bytes, patch)
2010-11-14 04:21 UTC, Pierre Carrier
no flags Details | Diff

Description Pierre Carrier 2010-11-14 04:21:24 UTC
Created attachment 460301 [details]
Proposed patch

Description of problem:
- plugins/cs.py uses os.path.exists with a regexp

Version-Release number of selected component (if applicable):
2.2

Additional info:
- os.path.exists() does not expand wildcards.
- glob.glob() does, and should be available in every packaged Python:
Added Tue Jan 1 18:17:49 1991 UTC (19 years, 10 months ago) by guido

Comment 1 Pierre Carrier 2010-11-14 04:23:11 UTC
s/regexp/wildcard/

I get tired :)

Comment 2 Pierre Carrier 2010-11-15 19:33:39 UTC
Corrected through https://fedorahosted.org/sos/changeset/999


Note You need to log in before you can comment on or make changes to this bug.