[PATCH 1/2] Expand the '~' in the RPM_FOLDER_NAME

Vratislav Podzimek vpodzime at redhat.com
Tue Jul 30 08:34:34 UTC 2013


Python doesn't expand it automatically and uses it as a folder name.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 scripts/makeupdates | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makeupdates b/scripts/makeupdates
index 6368ec2..f2fd188 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -31,7 +31,7 @@ import glob
 import urlgrabber
 import urlgrabber.progress
 
-RPM_FOLDER_NAME = "~/.anaconda_updates_rpm_cache"
+RPM_FOLDER_NAME = os.path.expanduser("~/.anaconda_updates_rpm_cache")
 KOJI_BASE_URL = "http://kojipkgs.fedoraproject.org//packages/" \
                 "%(toplevel_name)s/%(toplevel_version)s/%(release)s/%(arch)s/%(rpm_name)s"
 
-- 
1.7.11.7



More information about the anaconda-patches mailing list