diff options
| author | Sergio <sergiotarxz@posteo.net> | 2026-09-24 19:00:20 +0200 |
|---|---|---|
| committer | Sergio <sergiotarxz@posteo.net> | 2026-09-24 19:00:20 +0200 |
| commit | 366eafc387c3987420d780455ebc9cf0f5a145fd (patch) | |
| tree | 32a2725a4f79f330b9cc11c567facbf209636a42 /lib | |
| parent | e13fa09b39e74ba4e7d07bb4b3a48b129f048103 (diff) | |
Improving updateHEADv1.0.0-rc16main
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/AlgaOS/Updater/GUI.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/AlgaOS/Updater/GUI.pm b/lib/AlgaOS/Updater/GUI.pm index fc0bbc9..db26705 100644 --- a/lib/AlgaOS/Updater/GUI.pm +++ b/lib/AlgaOS/Updater/GUI.pm @@ -168,7 +168,7 @@ sub is_there_updates($self) { if ($preference) { $preference = '-'.$preference; } - $preference =// ''; + $preference //= ''; say $bin_fh <<"EOF"; [algaos] @@ -182,7 +182,8 @@ EOF } $self->sync_repo; - my $output = `emerge -p --getbinpkg -uUDN \@world --with-bdeps=y`; + my $output = `emerge -p --getbinpkg -uUDN \@world \@system --with-bdeps=y`; + $output .= `emerge -p --getbinpkg --noreplace \@world \@system --with-bdeps=y`; say $output; my $updatable = $output =~ /^\[(?:ebuild|binary)\s+/m; @@ -324,11 +325,11 @@ sub _update($self) { } if ( system - qw{sudo emerge --noreplace --getbinpkg @world --with-bdeps=y} ) + qw{sudo emerge -1 --noreplace --getbinpkg @world @system --with-bdeps=y} ) { exit 1; } - if ( system qw{sudo emerge --getbinpkg -uUDN @world --with-bdeps=y} ) { + if ( system qw{sudo emerge -1 --getbinpkg -uUDN @world @system --with-bdeps=y} ) { exit 1; } if ( system qw{sudo emerge --depclean} ) { |
