aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-07-29 20:25:57 +0200
committerAndré Erdmann <dywi@mailerd.de>2014-07-29 20:28:17 +0200
commit48857ff9eae7795dc1eb2563b7f41dd89526ad03 (patch)
tree1b4eff3348fbcac8dc1b325c23eff1de47326dbc
parentpackagerules/generators/addition_control: fix (diff)
downloadR_overlay-48857ff9eae7795dc1eb2563b7f41dd89526ad03.tar.gz
R_overlay-48857ff9eae7795dc1eb2563b7f41dd89526ad03.tar.bz2
R_overlay-48857ff9eae7795dc1eb2563b7f41dd89526ad03.zip
roverlay/overlay/pkgdir/packagedir_base: fix
Clear "replace-only" addition control flag when revbumping. Otherwise, the revbumped package gets denied.
-rw-r--r--roverlay/overlay/pkgdir/packagedir_base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/roverlay/overlay/pkgdir/packagedir_base.py b/roverlay/overlay/pkgdir/packagedir_base.py
index 7a8a29f..ae3f10a 100644
--- a/roverlay/overlay/pkgdir/packagedir_base.py
+++ b/roverlay/overlay/pkgdir/packagedir_base.py
@@ -389,7 +389,7 @@ class PackageDirBase ( roverlay.overlay.base.OverlayObject ):
or self.DISTMAP.check_revbump_necessary ( package_info )
):
# resolve by recursion,
- # keep addition_control as-is
+ # clear "replace-only" addition_control
assert package_info.overlay_addition_override is addition_override
if (addition_override & _PKG_REVBUMP_ON_COLLISION):
@@ -403,8 +403,11 @@ class PackageDirBase ( roverlay.overlay.base.OverlayObject ):
#
# -- end if
+ package_info.revbump()
+ package_info.overlay_addition_override &= ~_PKG_REPLACE_ONLY
+
return package_add_main (
- package_info = package_info.revbump(),
+ package_info = package_info,
add_if_physical = add_if_physical,
allow_postpone = allow_postpone
)