fix up doing hashed directories for Packages
This commit is contained in:
parent
72b9333abd
commit
8ed9aafb78
@ -710,11 +710,13 @@ class Pungi(pypungi.PungiBase):
|
|||||||
basename = os.path.basename(po.relativepath)
|
basename = os.path.basename(po.relativepath)
|
||||||
|
|
||||||
local = po.localPkg()
|
local = po.localPkg()
|
||||||
nohash = self.config.get('pungi', 'nohash')
|
if self.config.getboolean('pungi', 'nohash'):
|
||||||
if nohash:
|
|
||||||
target = os.path.join(pkgdir, basename)
|
target = os.path.join(pkgdir, basename)
|
||||||
else:
|
else:
|
||||||
target = os.path.join(pkgdir, po.name[0].lower(), basename)
|
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)
|
# Link downloaded package in (or link package from file repo)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user