]> granicus.if.org Git - python/commitdiff
Fixed bug "[#466200] ability to specify a 'verify' script".
authorGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 6 Nov 2002 18:44:26 +0000 (18:44 +0000)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 6 Nov 2002 18:44:26 +0000 (18:44 +0000)
* Lib/distutils/command/bdist_rpm.py
  (bdist_rpm.initialize_options): Included verify_script attribute.
  (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename.
  (bdist_rpm._make_spec_file): Included verify_script in script_options
  tuple.

* Misc/NEWS
  Mention change.

Lib/distutils/command/bdist_rpm.py
Misc/NEWS

index 597b26c6add930a8a5a253215892c334ff0102d9..0dad1ac4744c909b5e632a998ea26a79c004919f 100644 (file)
@@ -129,6 +129,7 @@ class bdist_rpm (Command):
         self.build_script = None
         self.install_script = None
         self.clean_script = None
+        self.verify_script = None
         self.pre_install = None
         self.post_install = None
         self.pre_uninstall = None
@@ -208,6 +209,7 @@ class bdist_rpm (Command):
         self.ensure_filename('build_script')
         self.ensure_filename('install_script')
         self.ensure_filename('clean_script')
+        self.ensure_filename('verify_script')
         self.ensure_filename('pre_install')
         self.ensure_filename('post_install')
         self.ensure_filename('pre_uninstall')
@@ -424,6 +426,7 @@ class bdist_rpm (Command):
               "--root=$RPM_BUILD_ROOT "
               "--record=INSTALLED_FILES") % self.python),
             ('clean', 'clean_script', "rm -rf $RPM_BUILD_ROOT"),
+            ('verifyscript', 'verify_script', None),
             ('pre', 'pre_install', None),
             ('post', 'post_install', None),
             ('preun', 'pre_uninstall', None),
index 4fc52ea5694bd2b26d68f3917efd12d44dd4bdc1..d35cc0f37196c3fa1e9a263b23737c35a07f86df 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -355,7 +355,7 @@ Extension modules
 - Fixed bug #470582: sre module would return a tuple (None, 'a', 'ab')
   when applying the regular expression '^((a)c)?(ab)$' on 'ab'. It now
   returns (None, None, 'ab'), as expected. Also fixed handling of
-  lastindex/lastgroup match attributes in similar cases. For example,
+  lastindex/lastgroup match attributes in similar cases. For example,
   when running the expression r'(a)(b)?b' over 'ab', lastindex must be
   1, not 2.
 
@@ -558,6 +558,10 @@ Library
 - New pdb command `pp' which is like `p' except that it pretty-prints
   the value of its expression argument.
 
+- Now bdist_rpm distutils command understands a verify_script option in
+  the config file, including the contents of the referred filename in
+  the "%verifyscript" section of the rpm spec file.
+
 Tools/Demos
 -----------