Bug 135246

Summary: hard-coded root home directory
Product: Red Hat Enterprise Linux 2.1 Reporter: Bastien Nocera <bnocera>
Component: up2dateAssignee: Bret McMillan <bretm>
Status: CLOSED WONTFIX QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: k.georgiou, tao, tgfurnish
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: 2006-03-14 16:50:15 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 Bastien Nocera 2004-10-11 11:47:39 UTC
Description of problem:
up2date doesn't find the GPG keys if root's $HOME isn't /root

Patch below from Jose Plans <jplans>:

--- up2date-AS-2.9.11/gpgUtils.py.jmp   Mon Oct 11 12:31:21 2004
+++ up2date-AS-2.9.11/gpgUtils.py       Mon Oct 11 12:31:09 2004
@@ -14,7 +14,7 @@
log = up2dateLog.initLog()

# directory to look for .gnupg/options, etc
-gpg_home_dir = "/root/.gnupg"
+gpg_home_dir = os.environ.get("HOME") + "/.gnupg"


def checkGPGInstallation():

Comment 1 Aleksey Nogin 2004-11-29 16:08:48 UTC
*** Bug 137497 has been marked as a duplicate of this bug. ***