This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ability to specify a 'verify' script
Type: enhancement Stage:
Components: Distutils Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, jnelson, niemeyer
Priority: normal Keywords:

Created on 2001-09-28 21:05 by jnelson, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (2)
msg6753 - (view) Author: Jon Nelson (jnelson) Date: 2001-09-28 21:05
The following patch adds the ability to specify a
'verify' script (as used by the %verify).

Treatment is exactly the same as with post_install,
etc...


--- bdist_rpm.py        Wed Sep 12 11:42:17 2001
+++ /home/agamemnon/jnelson/bdist_rpm.py        Fri Sep
28 16:09:18 2001
@@ -131,6 +131,7 @@
         self.post_install = None
         self.pre_uninstall = None
         self.post_uninstall = None
+        self.verifyscript = None
         self.prep = None
         self.provides = None
         self.requires = None
@@ -210,6 +211,7 @@
         self.ensure_filename('post_install')
         self.ensure_filename('pre_uninstall')
         self.ensure_filename('post_uninstall')
+        self.ensure_filename('verifyscript')
 
         # XXX don't forget we punted on summaries and
descriptions -- they
         # should be handled here eventually!
@@ -423,6 +425,7 @@
             ('post', 'post_install', None),
             ('preun', 'pre_uninstall', None),
             ('postun', 'post_uninstall', None),
+            ('verify', 'verifyscript', None),
         ]
 
         for (rpm_opt, attr, default) in
script_options:
msg6754 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2002-11-06 18:47
Logged In: YES 
user_id=7887

Applied in the following CVS revisions:   
 
Lib/distutils/command/bdist_rpm.py: 1.33->1.34 
Misc/NEWS: 1.513->1.514 
   
I've done a few changes to your original patch:   
   
- Named the option verify_script, for conformance with other options   
(clean_script, etc).   
   
-  The rpm section is named "%verifyscript", not "%verify". I've reflected  
that in the script_options tuple.  
  
Thank you!  
History
Date User Action Args
2022-04-10 16:04:29adminsetgithub: 35248
2001-09-28 21:05:15jnelsoncreate