Bug 1093918

Summary: post script errors - rhn is not alway installed
Product: [Fedora] Fedora EPEL Reporter: Florian La Roche <florian.laroche>
Component: epel-releaseAssignee: Michael Stahnke <mastahnke>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: dennis, djw8605, kevin, mastahnke, trevor.hemsley
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-18 23:20:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian La Roche 2014-05-03 09:32:32 UTC
Description of problem:
rpm -Uvh http://10.251.252.20/download/epel/beta/7/x86_64/epel-release-7-0.1.noarch.rpm
Retrieving http://10.251.252.20/download/epel/beta/7/x86_64/epel-release-7-0.1.noarch.rpm
warning: /var/tmp/rpm-tmp.9nEiGs: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:epel-release-7-0.1               ################################# [100%]
/var/tmp/rpm-tmp.NYqonp: line 1: /etc/sysconfig/rhn/sources: No such file or directory
/var/tmp/rpm-tmp.NYqonp: line 3: /etc/sysconfig/rhn/sources: No such file or directory
warning: %post(epel-release-7-0.1.noarch) scriptlet failed, exit status 1


rpm -q --scripts epel-release
postinstall scriptlet (using /bin/sh):
echo "# epel repo -- added by epel-release " \
    >> /etc/sysconfig/rhn/sources
echo "yum epel http://download.fedoraproject.org/pub/epel/7/\$ARCH" \
    >> /etc/sysconfig/rhn/sources
postuninstall scriptlet (using /bin/sh):
sed -i '/^yum\ epel/d' /etc/sysconfig/rhn/sources
sed -i '/^\#\ epel\ repo\ /d' /etc/sysconfig/rhn/sources



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Trevor Hemsley 2014-06-18 14:33:19 UTC
This appears to be a regression of https://bugzilla.redhat.com/show_bug.cgi?id=627611 which was for el6

Comment 2 Kevin Fenzi 2014-06-18 23:20:30 UTC
Fixed. Should be in tomorrow's compose.