Bug 43156

Summary: setting doc_files attribute on bdist_rpm crashes
Product: [Retired] Red Hat Linux Reporter: j. alan eldridge <alane>
Component: DistutilsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-01 15:12:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description j. alan eldridge 2001-06-01 15:12:10 UTC
Description of Problem:

use the "doc_files" attribute on a bdist_rpm object, e.g. in a setup.cfg 
file.

self.doc.append is called, which doesn't exist (it's 
self.doc_files.append).

[alane@wwweasel alane]$ more distutils-1.0.1-bdist_rpm.patch
--- distutils/command/bdist_rpm.py.or   Sat Sep 30 14:27:54 2000
+++ distutils/command/bdist_rpm.py      Thu May 31 00:53:44 2001
@@ -189,7 +189,7 @@
         if type(self.doc_files) is ListType:
             for readme in ('README', 'README.txt'):
                 if os.path.exists(readme) and readme not in 
self.doc_files:
-                    self.doc.append(readme)
+                    self.doc_files.append(readme)
 
         self.ensure_string('release', "1")
         self.ensure_string('serial')   # should it be an int?
[alane@wwweasel alane]$

Comment 1 Trond Eivind Glomsrxd 2001-06-01 15:40:46 UTC
Fixed in Distutils-1.0.2-1, which had the same problem - please report to the
distutils SIG as well. Thanks.