Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beckerr-rzht opened this issue Nov 25, 2022 · 0 comments
Open

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

beckerr-rzht opened this issue Nov 25, 2022 · 0 comments

Comments

@beckerr-rzht
Copy link

beckerr-rzht commented Nov 25, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant