Your message dated Mon, 01 Aug 2016 10:26:07 +0000
with message-id <[email protected]>
and subject line Bug#830194: fixed in rpm 4.12.0.1+dfsg1-6
has caused the Debian Bug report #830194,
regarding rpm-4.12 : preun behaviour bug
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
830194: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830194
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rpm
Version: 4.12.0.1+dfsg1-3
Tags: patch

--


Hi,
since rpm 4.12, if a preun scriptlet fails, the rpm is still completely removed
whereas it shouldn't.
I sent a pull request for the bug, but would like the patch to be taken in here
before to fix the buggy behaviour.
Thanks,


F.
diff -Nru rpm-4.12.0.1+dfsg1/debian/patches/fix-preun-scriptlet-failing-behaviour.patch rpm-4.12.0.1+dfsg1/debian/patches/fix-preun-scriptlet-failing-behaviour.patch
--- rpm-4.12.0.1+dfsg1/debian/patches/fix-preun-scriptlet-failing-behaviour.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpm-4.12.0.1+dfsg1/debian/patches/fix-preun-scriptlet-failing-behaviour.patch	2016-07-07 11:07:30.000000000 +0200
@@ -0,0 +1,22 @@
+Description: Fix preun scriptlet failure not aborting rpm erase
+ Since commit f4a49c3 ( Unceremoniously
+ eliminate rpmpsmNext() ), when a preun scriptlet is failing, rpm continues to
+ be erased. Handling return code of runInstScript.
+Author: Frederic Bonnard <[email protected]>
+Forwarded: https://github.com/rpm-software-management/rpm/pull/74
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/psm.c
++++ b/lib/psm.c
+@@ -791,8 +791,10 @@
+ 	    if (rc) break;
+ 	}
+ 
+-	if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPREUN))
++	if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPREUN)) {
+ 	    rc = runInstScript(psm, RPMTAG_PREUN);
++	    if (rc) break;
++	}
+ 
+ 	rc = rpmpsmRemove(psm);
+ 	if (rc) break;
diff -Nru rpm-4.12.0.1+dfsg1/debian/patches/series rpm-4.12.0.1+dfsg1/debian/patches/series
--- rpm-4.12.0.1+dfsg1/debian/patches/series	2015-04-24 14:00:55.000000000 +0200
+++ rpm-4.12.0.1+dfsg1/debian/patches/series	2016-07-07 11:04:27.000000000 +0200
@@ -13,3 +13,4 @@
 fix-python-multiarch-include.patch
 rpm-4.11.2-double-separator-warning.patch
 CVE-2014-8118.patch
+fix-preun-scriptlet-failing-behaviour.patch

--- End Message ---
--- Begin Message ---
Source: rpm
Source-Version: 4.12.0.1+dfsg1-6

We believe that the bug you reported is fixed in the latest version of
rpm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michal Čihař <[email protected]> (supplier of updated rpm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 01 Aug 2016 11:36:23 +0200
Source: rpm
Binary: rpm rpm2cpio rpm-common rpm-i18n librpm3 librpmio3 librpmbuild3 
librpmsign3 librpm-dev python-rpm python3-rpm debugedit
Architecture: source amd64 all
Version: 4.12.0.1+dfsg1-6
Distribution: unstable
Urgency: medium
Maintainer: RPM packaging team <[email protected]>
Changed-By: Michal Čihař <[email protected]>
Description:
 debugedit  - tool to mangle source locations in .debug files
 librpm-dev - RPM shared library, development kit
 librpm3    - RPM shared library
 librpmbuild3 - RPM build shared library
 librpmio3  - RPM IO shared library
 librpmsign3 - RPM signing shared library
 python-rpm - Python bindings for RPM
 python3-rpm - Python 3 bindings for RPM
 rpm        - package manager for RPM
 rpm-common - common files for RPM
 rpm-i18n   - localization and localized man pages for rpm
 rpm2cpio   - tool to convert RPM package to CPIO archive
Closes: 830194
Changes:
 rpm (4.12.0.1+dfsg1-6) unstable; urgency=medium
 .
   * Fix preun scriptlet failure not aborting rpm erase (Closes: #830194).
Checksums-Sha1:
 9999ecd19baac3da8c10c15c7f38e1f603be8f77 3014 rpm_4.12.0.1+dfsg1-6.dsc
 f0e83198f0f171a73117abcbc84c559468fa976b 33824 
rpm_4.12.0.1+dfsg1-6.debian.tar.xz
 d812010604694b17e77de61a54fe38b8501d7baf 38088 
debugedit-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 5c5115ca66923e6b3f4db2e4caf2d0cb38b8900a 1110172 
debugedit_4.12.0.1+dfsg1-6_amd64.deb
 285ce9fb3e3372dba873d236efd4515b04045dfc 1152348 
librpm-dev_4.12.0.1+dfsg1-6_amd64.deb
 09f32d0918eb76fc831b213e880284f77d051d99 501486 
librpm3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 818be4d5515d71bcfd67dae1adee105c045f9cd2 1251612 
librpm3_4.12.0.1+dfsg1-6_amd64.deb
 6002ab0648da2338e472aa410c07e9d1647fa79e 158524 
librpmbuild3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 18ac1e9b5f6767b041548041873a28b9ff53ffc1 1153698 
librpmbuild3_4.12.0.1+dfsg1-6_amd64.deb
 7a31c946d7cf225c684292322d99c6a0eb01af99 188054 
librpmio3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 b3f801f821062781b589ba237ab0fc62630b48a3 1162580 
librpmio3_4.12.0.1+dfsg1-6_amd64.deb
 c61c5ffe92efca44e9b2546e8c8e1b9f7b059d39 17952 
librpmsign3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 ec507d424425ba21c6b5d06b3b967c6b256dc59b 1102804 
librpmsign3_4.12.0.1+dfsg1-6_amd64.deb
 01338d6b323ff46a1b99b89c175d7a9e6354f86f 117326 
python-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 64b2be086871932e49164f7b1d14420a3d757d4a 1132362 
python-rpm_4.12.0.1+dfsg1-6_amd64.deb
 c3819d9e049862e5fabaf9b296e403cd8ee0efa4 116882 
python3-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 2ad50ff1abbe840013263afb419f80312aae13c2 1132512 
python3-rpm_4.12.0.1+dfsg1-6_amd64.deb
 85693a0e7fb472f0945cbc2a4dd79361611147d1 25994 
rpm-common-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 287bc699035474dd188f99e7fe6eea2c8094ea18 1120206 
rpm-common_4.12.0.1+dfsg1-6_amd64.deb
 28002f15b6493521d440eb04bb53ef0ff480b379 101120 
rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 e58a942f19dafc23c5bed47b075d3bba8c7a5db7 1409670 
rpm-i18n_4.12.0.1+dfsg1-6_all.deb
 873cebcd158096963a3ce9ebcd6b9f0654b0dd1b 19712 
rpm2cpio-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 91d76ff0ee8cf23a374932b54b3d7b956cca8287 1102346 
rpm2cpio_4.12.0.1+dfsg1-6_amd64.deb
 c685e8a92eaecc95aa2d0f963e1669e592fcc1c7 1208672 rpm_4.12.0.1+dfsg1-6_amd64.deb
Checksums-Sha256:
 a257fc6a2a1d696c4f86c0be70570b91d2d9fb7906895d4c5ca788859ab3ebf6 3014 
rpm_4.12.0.1+dfsg1-6.dsc
 5f09a3db8287d14b6b3be4fa1fb9e4c166ed86f2a4cecdce50e4eeb0bf417b9e 33824 
rpm_4.12.0.1+dfsg1-6.debian.tar.xz
 65fb2b95f5d4400264627e43c5eaf7328c7195cb4594eb52c7d07323453616e8 38088 
debugedit-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 c7f3564aaa73d6ffcc33f24bf8f34eafa6ceb6dd8b309665ecf02a91fa3cc880 1110172 
debugedit_4.12.0.1+dfsg1-6_amd64.deb
 66a7553c9dfccbce7207a76008d0222d4913e9ad0bb3e7aabb67310b67ed0e33 1152348 
librpm-dev_4.12.0.1+dfsg1-6_amd64.deb
 8ad598b72520ffa45547ecf5684134fa60993d01ee6d312f736d9a7dfe371bb8 501486 
librpm3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 79364e738260000aa5d01f14bd44c413aeb320d05dee00ce790d9cf23f922f16 1251612 
librpm3_4.12.0.1+dfsg1-6_amd64.deb
 5a8ede9939f309962127e90411d9bf853a9594c43690541963251c7d69af4862 158524 
librpmbuild3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 031757fb3b79aab69ea9c57b5fe92e5c542981208025606826dad6f075db045f 1153698 
librpmbuild3_4.12.0.1+dfsg1-6_amd64.deb
 08ae8990be6c7fecd1a72d686134b86d7a3a33f7cd2cec0a51037dc9b56e5ef0 188054 
librpmio3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 465959d00430952fc30c7ccc2955ccddf9610dd87d29da7f6a34536d21893526 1162580 
librpmio3_4.12.0.1+dfsg1-6_amd64.deb
 1ed795db0b13ba9e5bc4b4ac1658d5c8607fe95a8ff81aa4434e8a4dfd97d80d 17952 
librpmsign3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 d561f1b306a2feb6afd2d97cd6b97299ab50ca3f94d80f1b3e8c229d44b4038d 1102804 
librpmsign3_4.12.0.1+dfsg1-6_amd64.deb
 136f18cc9b890a1cdf6ff86edc212dc978f040367164a7d8fd9f8bf7d84d3fe0 117326 
python-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 982ce396512a5520a4f441b18605291e94e6ec9f1fe3b920198a87b78dd8f0a1 1132362 
python-rpm_4.12.0.1+dfsg1-6_amd64.deb
 b733d911257ab15eedbe2fc768ae30c2076e97c666772152b1260414f4a3918b 116882 
python3-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 0fcf46293d449529556f6741f87ed7ec7791e644fbd90b23d28187d6a0602055 1132512 
python3-rpm_4.12.0.1+dfsg1-6_amd64.deb
 a44c6bf3df07e546e1db0a3ebdac7c5f13a384fcc62ea66f569387443d7dc211 25994 
rpm-common-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 2321339c0ae9ca5e794abbd00690eb4b75e11d63291cc8af3e8b0b5667ecb368 1120206 
rpm-common_4.12.0.1+dfsg1-6_amd64.deb
 caac04b7f321d19ea3b833d2bf261cd8151fc4656de01516dc0573c844f12004 101120 
rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 cced4e8e09e5fdc3a218ba360aa48cc36e5353576f20d1d844476c3012a4c34a 1409670 
rpm-i18n_4.12.0.1+dfsg1-6_all.deb
 f95dbd3fc3f0729a5e1d049bcfea09c4dc6f8ffe184a65a67aa7bcff9c0edaab 19712 
rpm2cpio-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 bf70eb8eeeb467d1884a42e8e6628dd3fcccf2ec27baef291455b43431378fd0 1102346 
rpm2cpio_4.12.0.1+dfsg1-6_amd64.deb
 b3997a66173a8b5e0814a0c8c55fe29faa875519faf3a36216e24cb88449f56a 1208672 
rpm_4.12.0.1+dfsg1-6_amd64.deb
Files:
 ba4a925c4ba48a0fbcd84c1b79876e20 3014 admin optional rpm_4.12.0.1+dfsg1-6.dsc
 26b29c589b76c08a77fe91ac5f8d4a5a 33824 admin optional 
rpm_4.12.0.1+dfsg1-6.debian.tar.xz
 0cfc69ac762782ad1dd598ea9338db99 38088 debug extra 
debugedit-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 a67dedff1163cc449f19e35f7bf977ec 1110172 admin optional 
debugedit_4.12.0.1+dfsg1-6_amd64.deb
 5c82cc58977beb73eba51ccf4d699643 1152348 libdevel extra 
librpm-dev_4.12.0.1+dfsg1-6_amd64.deb
 459abfe9ccaea6660a8c28ebb4a5e9b7 501486 debug extra 
librpm3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 678478f277062024cd3989946a532199 1251612 libs optional 
librpm3_4.12.0.1+dfsg1-6_amd64.deb
 6dc04d354e9ffd4672a2abc9e2167efb 158524 debug extra 
librpmbuild3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 384d265a51a3681891ac0a24dadd8006 1153698 libs optional 
librpmbuild3_4.12.0.1+dfsg1-6_amd64.deb
 72708062855ed22bda2034742a3fb8a3 188054 debug extra 
librpmio3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 34653f2777d79ada5a0334de42987859 1162580 libs optional 
librpmio3_4.12.0.1+dfsg1-6_amd64.deb
 7afa010a36c397530e01118666ff90e5 17952 debug extra 
librpmsign3-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 4bef649d95b0f4e3173ca854568a7482 1102804 libs optional 
librpmsign3_4.12.0.1+dfsg1-6_amd64.deb
 250eabcf02af885c6fe3ede144e7e3c9 117326 debug extra 
python-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 a63216715f0405f9894557687c017dcb 1132362 python extra 
python-rpm_4.12.0.1+dfsg1-6_amd64.deb
 6e3d8f8f47683f173945f1a0fd3a0a00 116882 debug extra 
python3-rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 4eafd36322f43d6c85679f3ec8524b45 1132512 python extra 
python3-rpm_4.12.0.1+dfsg1-6_amd64.deb
 350c6f69c9bbdcad4a4a344b73ffc1dd 25994 debug extra 
rpm-common-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 02ebdb8f906570a5dc0d290ece991d19 1120206 admin optional 
rpm-common_4.12.0.1+dfsg1-6_amd64.deb
 3d222de328367a8d96e2c5918d9b60bb 101120 debug extra 
rpm-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 2a908cc3a9442e3cd4dd3aee0397ad0b 1409670 localization optional 
rpm-i18n_4.12.0.1+dfsg1-6_all.deb
 606e4c938bbe19046dae1c4487419863 19712 debug extra 
rpm2cpio-dbgsym_4.12.0.1+dfsg1-6_amd64.deb
 def154ca4d4ad7a272abce1733cb6f75 1102346 admin optional 
rpm2cpio_4.12.0.1+dfsg1-6_amd64.deb
 24804e2dca1efd1c8c6f7e6566833a04 1208672 admin optional 
rpm_4.12.0.1+dfsg1-6_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXnxjiAAoJEJwnsxNCt1EdxKUQAJcEnZ1Mo3coGBEVc8vysBCe
dK2vZ2pkPQUTJfcLxVWmQFd2TBIGZGq0MgQYY0abWsFsx0M3LfYNqsHlA3Kpeag5
ciwnUoI8LkIudDHaZ2IYb8ZWm0PwOQrKQlSAqt08po5mk/QTyS7/N/wBmnBXTn8S
gLPWynCu1bdTVds4js2gRKThjYRv7TU6DOh9wCOrqfboobHlo3wHZTi5avMMVHxz
VK6jNo91fpBpn4ta8lChou7lhf34wgeJ2tdfBaHZ31hJQYtt1iM8t3z8RW0f2bZX
YwVTMAbrEdgv7ytoPdi1mgLwEE63BJ7MBKL+AcS8D1OG2XsgwpZvFGodq6Hxslxx
EPyogGsrPHFUm3ofi+ZBqdgMV0vlqWGxi570F5S2gk5nO9CQErgx4pcO6Lx31xC4
/fAi808o4IBN1LJ977VxjeNuwTecZ46S1TRAxYLynOazAtH9w1DeUA5Pc6pdpWWQ
bxcQIoo0NTCw6G//aPPszYDyYBni23eW3YFHRsWqdpF+uD6WCxtKTTroYzxit/8g
I7siaqAR4GMRJ2Dov3r7uI+CSsRmPxxOxQQ3xUJMe1fz7mwXYu+nVQllffi6vzGU
Jdl1UFRRAnDJpNhp583Td6bJkGmKsK6l1j7MwQTQCXljbBKZYnBsB9xg1nak0cx0
scZnoS4N8c4YF40w80Ys
=L62C
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to