From cc7213ade51479b0d3f5433f6a1137cbb695087e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Oct 2008 10:46:33 +0000 Subject: - handle flag "replacefiles" --- NEWS | 2 ++ URPM.xs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 550665b..a4dce96 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- handle flag "replacefiles" + Version 3.18 - 7 July 2008, by Pascal "Pixel" Rigaux - revert change introduced in 3.16 (it breaks too much, eg diff --git a/URPM.xs b/URPM.xs index d6bc566..2821990 100644 --- a/URPM.xs +++ b/URPM.xs @@ -3279,6 +3279,8 @@ Trans_run(trans, data, ...) if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE; } else if (len == 11 && !memcmp(s, "replacepkgs", 11)) { if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_REPLACEPKG; + } else if (len == 12 && !memcmp(s, "replacefiles", 12)) { + if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_REPLACEOLDFILES | RPMPROB_FILTER_REPLACENEWFILES; } else if (len == 9 && !memcmp(s, "repackage", 9)) { if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_REPACKAGE; } else if (len == 6 && !memcmp(s, "justdb", 6)) { -- cgit v1.2.1