Files
Ilia Ross e695fbd0c7 Add APT package hold management to Package Updates
- Add an APT-only “Held updates” view while keeping held packages excluded from normal and scheduled updates.

- Allow administrators to hold or unhold packages from package details.

- Allow explicitly selected held packages to be updated once, then restore all existing package holds.

- Preserve configured `aptitude` behavior for regular installs while using `apt-get` for the held-package override.

Fixes #2689
2026-08-14 03:43:50 +02:00

22 lines
640 B
Perl
Executable File

#!/usr/local/bin/perl
# Just redirect to either the software module or update page
require './package-updates-lib.pl';
&ReadParse();
if ($in{'software'}) {
&redirect("../software/edit_pack.cgi?package=".&urlize($in{'name'}).
"&version=".&urlize($in{'version'}));
}
elsif ($in{'hold'} || $in{'unhold'}) {
$action = $in{'hold'} ? "hold" : "unhold";
&redirect("update.cgi?u=".&urlize($in{'name'}."/".$in{'system'}).
"&$action=1&mode=".&urlize($in{'mode'}));
}
else {
$mode = $in{'held'} ? "held" : $in{'mode'};
&redirect("update.cgi?u=".&urlize($in{'name'}."/".$in{'system'}).
"&all=$in{'all'}&mode=".&urlize($mode));
}