From 8ed9aafb7805e63eedceec5be2f5d4f0df2d901a Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 16 Apr 2012 14:54:24 -0500 Subject: [PATCH] fix up doing hashed directories for Packages --- src/pypungi/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 9d567445..09b4ee96 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -710,11 +710,13 @@ class Pungi(pypungi.PungiBase): basename = os.path.basename(po.relativepath) local = po.localPkg() - nohash = self.config.get('pungi', 'nohash') - if nohash: + if self.config.getboolean('pungi', 'nohash'): target = os.path.join(pkgdir, basename) else: target = os.path.join(pkgdir, po.name[0].lower(), basename) + # Make sure we have the hashed dir available to link into we only want dirs there to corrospond to packages + # that we are including so we can not just do A-Z 0-9 + pypungi.util._ensuredir(os.path.join(pkgdir, po.name[0].lower()), self.logger, force=True, clean=False) # Link downloaded package in (or link package from file repo) try: