recreating absolute path bug
This commit is contained in:
parent
fb8cfc5678
commit
1bb6e7456f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue