Add %verifyscript support.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1565 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
73922f17fb
commit
b29ba4a9e6
3
Pkg.py
3
Pkg.py
|
@ -35,7 +35,8 @@ try:
|
|||
rpm.RPMSENSE_SCRIPT_PRE | \
|
||||
rpm.RPMSENSE_SCRIPT_POST | \
|
||||
rpm.RPMSENSE_SCRIPT_PREUN | \
|
||||
rpm.RPMSENSE_SCRIPT_POSTUN
|
||||
rpm.RPMSENSE_SCRIPT_POSTUN | \
|
||||
rpm.RPMSENSE_SCRIPT_VERIFY
|
||||
except AttributeError:
|
||||
try:
|
||||
PREREQ_FLAG = rpm.RPMSENSE_PREREQ
|
||||
|
|
|
@ -68,6 +68,7 @@ script_tags = [
|
|||
(rpm.RPMTAG_TRIGGERSCRIPTS, rpm.RPMTAG_TRIGGERSCRIPTPROG, '%trigger'),
|
||||
(rpm.RPMTAG_PRETRANS, rpm.RPMTAG_PRETRANSPROG, '%pretrans'),
|
||||
(rpm.RPMTAG_POSTTRANS, rpm.RPMTAG_POSTTRANSPROG, '%posttrans'),
|
||||
(rpm.RPMTAG_VERIFYSCRIPT, rpm.RPMTAG_VERIFYSCRIPTPROG, '%verifyscript'),
|
||||
]
|
||||
|
||||
def incorrect_shell_script(prog, shellscript):
|
||||
|
@ -201,9 +202,10 @@ addDetails(
|
|||
'postin-without-ghost-file-creation',
|
||||
'''A file tagged as ghost is not created during %prein nor during %postin.''',
|
||||
)
|
||||
for scriptlet in ('%pre', '%post', '%preun', '%postun', '%trigger',
|
||||
'%triggerin', '%triggerprein', '%triggerun',
|
||||
'%triggerpostun', '%pretrans', '%posttrans'):
|
||||
for scriptlet in (
|
||||
'%pre', '%post', '%preun', '%postun', '%pretrans', '%posttrans',
|
||||
'%trigger', '%triggerin', '%triggerprein', '%triggerun', '%triggerpostun',
|
||||
'%verifyscript'):
|
||||
addDetails(
|
||||
'one-line-command-in-%s' % scriptlet,
|
||||
'''You should use %s -p <command> instead of using:
|
||||
|
|
Loading…
Reference in New Issue