diff options
| author | Sergio <sergiotarxz@posteo.net> | 2026-09-18 15:21:51 +0200 |
|---|---|---|
| committer | Sergio <sergiotarxz@posteo.net> | 2026-09-18 15:21:51 +0200 |
| commit | 74560c4d7e121888bdf7970a3cde09c1bb23c4e1 (patch) | |
| tree | 99fda05c7f7e457548faa98807685298c5ab72c6 | |
| parent | 5d62f423bb7dce39ec4a24cfed259ac9300ba189 (diff) | |
Fixing bug updater not taking binaries.v1.0.0-rc9
| -rw-r--r-- | lib/AlgaOS/Updater/GUI.pm | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/lib/AlgaOS/Updater/GUI.pm b/lib/AlgaOS/Updater/GUI.pm index 40093f3..aa943e5 100644 --- a/lib/AlgaOS/Updater/GUI.pm +++ b/lib/AlgaOS/Updater/GUI.pm @@ -139,7 +139,25 @@ sub activate($self) { } sub is_there_updates($self) { + system qw{rm -v /etc/portage/binrepos.conf/gentoo.conf}; + { + open my $bin_fh, '|-', + qw{sudo tee /etc/portage/binrepos.conf/algaos.conf} + or die "open: $!"; + + say $bin_fh <<"EOF"; +[algaos] + +location = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg +sync-uri = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg +priority = 1 +verify-signature = false +EOF + + close $bin_fh or die "tee: $?"; + } $self->sync_repo; + my $output = `emerge -p --getbinpkg -uUDN \@world --with-bdeps=y`; say $output; @@ -277,23 +295,6 @@ sub _update($self) { $self->activate; my $pid = fork; if ( !$pid ) { - system qw{rm -v /etc/portage/binrepos.conf/gentoo.conf}; - { - open my $bin_fh, '|-', - qw{sudo tee /etc/portage/binrepos.conf/algaos.conf} - or die "open: $!"; - - say $bin_fh <<"EOF"; -[algaos] - -location = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg -sync-uri = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg -priority = 1 -verify-signature = false -EOF - - close $bin_fh or die "tee: $?"; - } if ( system qw{sudo emerge -uUDN portage algaos-updater} ) { exit 1; } |
