aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-02 14:38:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-02 14:38:08 +0000
commit6528818c8fad263a8e5eba1340a1cdcd41229c23 (patch)
tree83265f2bb474821190bd5d700005592048b9fa59
parentcf924fe5a98167ae7f7f3cd6288c931f87b22f5c (diff)
downloadperl-URPM-6528818c8fad263a8e5eba1340a1cdcd41229c23.tar
perl-URPM-6528818c8fad263a8e5eba1340a1cdcd41229c23.tar.gz
perl-URPM-6528818c8fad263a8e5eba1340a1cdcd41229c23.tar.bz2
perl-URPM-6528818c8fad263a8e5eba1340a1cdcd41229c23.tar.xz
perl-URPM-6528818c8fad263a8e5eba1340a1cdcd41229c23.zip
Prepare for obsolescence of PREREQ, introduce equivalent RPMSENSE_SCRIPT_* tags
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 86ad375..454e4c6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -400,7 +400,7 @@ print_list_entry(char *buff, int sz, char *name, int_32 flags, char *evr) {
if (len >= sz || !strncmp(name, "rpmlib(", 7)) return -1;
memcpy(p, name, len); p += len;
- if (flags & RPMSENSE_PREREQ) {
+ if (flags & (RPMSENSE_PREREQ|RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POSTUN|RPMSENSE_SCRIPT_POST)) {
if (p - buff + 3 >= sz) return -1;
memcpy(p, "[*]", 4); p += 3;
}