recreating absolute path bug

This commit is contained in:
Tomas Kopecek 2021-07-21 13:48:15 +02:00
parent fb8cfc5678
commit 1bb6e7456f

View file

@ -7638,7 +7638,7 @@ def delete_rpm_sig(rpminfo, sigkey=None, all_sigs=False):
raise koji.GenericError("File %s cannot be deleted." % file_path)
for path in list_paths:
basedir = joinpath(builddir, os.path.dirname(path))
basedir = os.path.dirname(path)
if os.path.isdir(basedir) and not os.listdir(basedir):
try:
os.rmdir(basedir)