Skip to content

Packages are ignored if they are set to "hold" #12

@beckerr-rzht

Description

@beckerr-rzht

Issue

On Debian based systems pakiti-client ignores packages if they are set to hold.

Example

# dpkg -l | grep ^h | grep bbb-config
hi  bbb-config   1:2.4.0-55        amd64        BigBlueButton configuration utilities
# /usr/local/bin/pakiti-client | grep bbb-config
report successfully printed

Fix

--- -   2022-11-25 16:15:25.108308076 +0100
+++ /usr/local/bin/pakiti-client        2022-11-25 16:13:22.001018418 +0100
@@ -286,7 +286,7 @@

         if (@output) {
             foreach my $line (@output) {
-                if ($line =~ /^install ok installed/) {
+                if ($line =~ /^(hold|install) ok installed/) {
                     $line =~ s{^.+?=}{}g;
                     push(@list, $line);
                 }

Result

# /usr/local/bin/pakiti-client | grep bbb-config
report successfully printed
bbb-config      1:2.4.0-55      amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions