Bug 1439734

Summary: Backport fix for shutil.make_archive doesn't archive empty directories
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Reichl <preichl>
Component: pythonAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bnater, cstratak, mbabacek, pviktori
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.7.5-56.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:25:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Reichl 2017-04-06 12:40:15 UTC
Description of problem:

shutil.make_archive doesn't archive empty directories

How reproducible:
always

Steps to Reproduce:
1.have directory with empty subdirectories
2.create archive of that directory

Actual results:
empty subdirectories are not in the zip file

Additional info:
Works in Fedora 25, fails in EL 7.3

https://bugs.python.org/issue24982

Thanks, bye.

Comment 5 Branislav Náter 2017-04-26 11:32:24 UTC
Verified on python-2.7.5-57.el7. Test is included in upstream test suite.

$ python test_shutil.py
<snip>
test_zipfile_vs_zip (__main__.TestShutil) ... ok
<snip>

Comment 6 errata-xmlrpc 2017-08-01 20:25:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1868