Bug 627611

Summary: scriptlet failure: /etc/sysconfig/rhn/sources: No such file or directory
Product: [Fedora] Fedora EPEL Reporter: Radek Bíba <rbiba>
Component: epel-releaseAssignee: Michael Stahnke <mastahnke>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el6CC: dennis, mastahnke
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-12 14:36:36 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:

Description Radek Bíba 2010-08-26 14:09:36 UTC
Description of problem:
I got the following error when I installed epel-release:

/var/tmp/rpm-tmp.Vu2IO3: line 1: /etc/sysconfig/rhn/sources: No such file or directory
/var/tmp/rpm-tmp.Vu2IO3: line 3: /etc/sysconfig/rhn/sources: No such file or directory

The package has a %post script that's trying to add its configuration to the file above. However, I don't have rhn-client-tools (yet), so I don't have /etc/sysconfig/rhn. epel-release should require rhn-client-tools to make sure the directory exists and file 'sources' can be altered/created, or the echo (and sed in %postun) should silently discard any errors. What do you think?

Version-Release number of selected component (if applicable):
epel-release-6-4

Comment 1 Michael Stahnke 2010-10-12 14:36:36 UTC
Fixing for EL6.  

http://koji.fedoraproject.org/koji/taskinfo?taskID=2530272

New version built which no longer messes with /etc/sysconfig/rhn/sources, as it doesn't appear to exist/be useful in el6. 

New epel-release should be pushed in the next 24 hours for el6.

Comment 2 Radek Bíba 2010-10-15 10:32:57 UTC
Thanks!