aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsergio <sergiotarxz@posteo.net>2026-09-16 22:49:11 +0200
committersergio <sergiotarxz@posteo.net>2026-09-16 22:49:11 +0200
commit9cfb564b3ebead3bfae7f4deaa05bdb22facbebe (patch)
tree4bcaa01dccfdaea5e251ee8ae4c5eee5c882232c /lib
parent4dd9cc34b5e364cfdec13ee651b3b275e4b1bb52 (diff)
First thing always merge algaos-updater if available update
Diffstat (limited to 'lib')
-rw-r--r--lib/AlgaOS/Updater/GUI.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/AlgaOS/Updater/GUI.pm b/lib/AlgaOS/Updater/GUI.pm
index 24d330f..d18cf05 100644
--- a/lib/AlgaOS/Updater/GUI.pm
+++ b/lib/AlgaOS/Updater/GUI.pm
@@ -279,7 +279,6 @@ sub _update($self) {
if ( !$pid ) {
system qw{rm -v /etc/portage/binrepos.conf/gentoo.conf};
{
- open my $bin_fh, '>', '/etc/portage/binrepos.conf/algaos.conf';
open my $bin_fh, '|-',
qw{sudo tee /etc/portage/binrepos.conf/algaos.conf}
or die "open: $!";
@@ -295,7 +294,13 @@ EOF
close $bin_fh or die "tee: $?";
}
- if ( system qw{sudo emerge --noreplace --getbinpkg @world --with-bdeps=y} ) {
+ if ( system qw{sudo emerge -uUDN algaos-updater} ) {
+ exit 1;
+ }
+ if (
+ system
+ qw{sudo emerge --noreplace --getbinpkg @world --with-bdeps=y} )
+ {
exit 1;
}
if ( system qw{sudo emerge --getbinpkg -uUDN @world --with-bdeps=y} ) {