Bug 43156 - setting doc_files attribute on bdist_rpm crashes
Summary: setting doc_files attribute on bdist_rpm crashes
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: Distutils   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-01 15:12 UTC by j. alan eldridge
Modified: 2014-03-17 02:21 UTC (History)
1 user (show)

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: ---


Attachments (Terms of Use)

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.


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