]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
apk: add help text for 'apk add --force-reinstall' 22426/head
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 14 Mar 2026 20:40:30 +0000 (22:40 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Mar 2026 13:52:56 +0000 (14:52 +0100)
Add a help text for the new --force-reinstall option, so that users
will actually find the new option.

(Also refresh patches)

Improves: 91cff1a "apk: add --force-reinstall option"

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/22426
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/system/apk/Makefile
package/system/apk/patches/0002-openwrt-wiki-help-link.patch
package/system/apk/patches/0100-add-add-force-reinstall-option.patch

index 2cea412dd519d00a2ac7aca08f1ec964e28ba726..df65bc082ea8a0ca11d444597d93003997afae0a 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=apk
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_URL=https://gitlab.alpinelinux.org/alpine/apk-tools.git
 PKG_SOURCE_PROTO:=git
index 587d3c79ff625e8b5bf367a5ff9acaa467df85ad..dd6466709e1282a46a687533b0eb241b07fef317 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/src/genhelp_apk.lua b/src/genhelp_apk.lua
-index a62e84d22ed5..a97264f6ab3c 100644
 --- a/src/genhelp_apk.lua
 +++ b/src/genhelp_apk.lua
-@@ -65,7 +65,7 @@ local function render_options(doc, out, options)
+@@ -65,7 +65,7 @@ local function render_options(doc, out,
  end
  
  local function render_footer(doc, out)
index 9d8c4c6c676120cc1cb3c603f0665f653049ef8a..829184bea5c4b9c02e6ea6e0776bf0b7aa2082d6 100644 (file)
@@ -46,3 +46,16 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        }
  
        r = apk_solver_commit(db, 0, world);
+--- a/doc/apk-add.8.scd
++++ b/doc/apk-add.8.scd
+@@ -30,6 +30,10 @@ To later upgrade or downgrade back to a
+ *apk add* supports the commit options described in *apk*(8), as well as the
+ following options:
++*--force-reinstall*
++      Allow reinstalling already-installed packages without a version
++      change. Only the named packages are reinstalled, not dependencies.
++
+ *--initdb*
+       Initialize a new package database.