Drop obsolete backwards compatibility cruft.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1566 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2009-03-17 23:15:17 +00:00
parent b29ba4a9e6
commit 3a77e5979e
1 changed files with 7 additions and 15 deletions

22
Pkg.py
View File

@ -29,23 +29,15 @@ import rpm
from Filter import printWarning
# TODO: which rpm-python versions are these tests for? can be dropped for 4.4+?
try:
PREREQ_FLAG = rpm.RPMSENSE_PREREQ | \
rpm.RPMSENSE_SCRIPT_PRE | \
rpm.RPMSENSE_SCRIPT_POST | \
rpm.RPMSENSE_SCRIPT_PREUN | \
rpm.RPMSENSE_SCRIPT_POSTUN | \
rpm.RPMSENSE_SCRIPT_VERIFY
except AttributeError:
try:
PREREQ_FLAG = rpm.RPMSENSE_PREREQ
except:
#(proyvind): This seems ugly, but then again so does this whole check
PREREQ_FLAG = False
# utilities
PREREQ_FLAG = rpm.RPMSENSE_PREREQ | \
rpm.RPMSENSE_SCRIPT_PRE | \
rpm.RPMSENSE_SCRIPT_POST | \
rpm.RPMSENSE_SCRIPT_PREUN | \
rpm.RPMSENSE_SCRIPT_POSTUN | \
rpm.RPMSENSE_SCRIPT_VERIFY
var_regex = re.compile('^(.*)\${?(\w+)}?(.*)$')
def shell_var_value(var, script):