[Python-checkins] python/dist/src/Lib/distutils/command bdist_rpm.py, 1.44, 1.45

jafo at users.sourceforge.net jafo at users.sourceforge.net
Fri Sep 17 10:34:15 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1423/dist/src/Lib/distutils/command

Modified Files:
	bdist_rpm.py 
Log Message:
SF Patch 1022011: Add a command-line argument --no-autoreq, which sets the
   "AutoReq: 0" to disable automatic dependency searching.


Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- bdist_rpm.py	17 Sep 2004 08:23:22 -0000	1.44
+++ bdist_rpm.py	17 Sep 2004 08:34:12 -0000	1.45
@@ -81,6 +81,8 @@
          "capabilities required to build this package"),
         ('obsoletes=', None,
          "capabilities made obsolete by this package"),
+        ('no-autoreq', None,
+         "do not automatically calculate dependencies"),
 
         # Actions to take when building RPM
         ('keep-temp', 'k',
@@ -125,7 +127,8 @@
          "Force an architecture onto the RPM build process"),
        ]
 
-    boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode']
+    boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode',
+                       'no-autoreq']
 
     negative_opt = {'no-keep-temp': 'keep-temp',
                     'no-rpm-opt-flags': 'use-rpm-opt-flags',
@@ -172,6 +175,7 @@
         self.keep_temp = 0
         self.use_rpm_opt_flags = 1
         self.rpm3_mode = 1
+        self.no_autoreq = 0
 
         self.force_arch = None
 
@@ -429,6 +433,9 @@
         if self.icon:
             spec_file.append('Icon: ' + os.path.basename(self.icon))
 
+        if self.no_autoreq:
+            spec_file.append('AutoReq: 0')
+
         spec_file.extend([
             '',
             '%description',



More information about the Python-checkins mailing list