Bug 705822
| Summary: | run-parts needs the --list parameter (or logcheck needs a workaround) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Till Maas <opensource> |
| Component: | logcheck | Assignee: | Matthias Runge <mrunge> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | el5 | CC: | chris, cummings, glshank, mrunge, opensource |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | logcheck-1.3.13-5.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 643130 | Environment: | |
| Last Closed: | 2011-09-24 21:56:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 643130 | ||
| Bug Blocks: | |||
|
Description
Till Maas
2011-05-18 15:31:54 UTC
Sigh, assuming, EL6 version is hit by the error too. I'll take a look on how to change this. *** Bug 730824 has been marked as a duplicate of this bug. *** Ok, I saw the hint of substituting run-parts with plain 'ls'. I think, it'll be better to change it to someting like find . -maxdepth 1 -type f ! -name "*.spec" ! -name "*.old" ! -name "*.rpmnew" ! -name "*.rpmsave" can you confirm this? I had to change 'find .' to 'find "$dir"' and then it worked. Final result looks like this: for rulefile in $(find "$dir" -maxdepth 1 -type f ! -name "*.spec" ! -name "*.old" ! -name "*.rpmnew" ! -name "*.rpmsave"); do I might even add '! -name "*.rpmorig"' to the list. Thanks, Greg Thank you for your feedback. An update containing a fix will follow soon. logcheck-1.3.13-4.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/logcheck-1.3.13-4.el5 logcheck-1.3.13-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/logcheck-1.3.13-4.el6 Package logcheck-1.3.13-4.el5: * should fix your issue, * was pushed to the Fedora EPEL 5 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing logcheck-1.3.13-4.el5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/logcheck-1.3.13-4.el5 then log in and leave karma (feedback). (In reply to comment #4) > I had to change 'find .' to 'find "$dir"' and then it worked. Final result > looks like this: > > for rulefile in $(find "$dir" -maxdepth 1 -type f ! -name "*.spec" ! -name > "*.old" ! -name "*.rpmnew" ! -name "*.rpmsave"); do > > I might even add '! -name "*.rpmorig"' to the list. Please also ignore files like "*~", "*,", "*.swp", und "*.cfsaved", because they are ignored by run-parts on Fedora 15, too. It might even be a good idea to ignore all hidden files. updated builds in updates-testing (In reply to comment #10) > updated builds in updates-testing You need to request that the updated update in Bodhi is pushed to testing. Changing the build reseted the request afaics. Also it would be better to prepare a patch instead of using sed to make the build fail in case upstream changes the code for sed not to work anymore. And another improvement would be to also ignore all hidden files, i.e. ".*" and the comment in the spec is wrong for the sed line. I thought, those builds get automagically into testing when I request testing.... The spec needs a cleanup. I'll prepare a patch, including hidden files. (In reply to comment #12) > I thought, those builds get automagically into testing when I request > testing.... If you edit a Bodhi update e.g. by changing the attached builds, the reqest to push it to testing is reset iirc. Therefore you need to request testing again after changing the included builds. logcheck-1.3.13-5.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report. logcheck-1.3.13-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |