Bug 43156 - setting doc_files attribute on bdist_rpm crashes
setting doc_files attribute on bdist_rpm crashes
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: Distutils (Show other bugs)
7.1
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-06-01 11:12 EDT by j. alan eldridge
Modified: 2014-03-16 22:21 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-06-01 11:12:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description j. alan eldridge 2001-06-01 11:12:10 EDT
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 11:40:46 EDT
Fixed in Distutils-1.0.2-1, which had the same problem - please report to the
distutils SIG as well. Thanks.

Note You need to log in before you can comment on or make changes to this bug.