aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergio <sergiotarxz@posteo.net>2026-09-24 01:14:35 +0200
committerSergio <sergiotarxz@posteo.net>2026-09-24 01:14:35 +0200
commit11d52d283c9cf29d7a944a5befcaf881171a515a (patch)
tree8b8f622af3133cae10976ba91544b035acdaad47 /lib
parente27c5255cf0175fd82a90a20dd5dc0733acbca67 (diff)
Allowing preference setting hosts to have binpkg updates.v1.0.0-rc12
Diffstat (limited to 'lib')
-rw-r--r--lib/AlgaOS/Updater/GUI.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/AlgaOS/Updater/GUI.pm b/lib/AlgaOS/Updater/GUI.pm
index 19c9c4e..0c8eacf 100644
--- a/lib/AlgaOS/Updater/GUI.pm
+++ b/lib/AlgaOS/Updater/GUI.pm
@@ -164,15 +164,12 @@ sub is_there_updates($self) {
qw{sudo tee /etc/portage/binrepos.conf/algaos.conf}
or die "open: $!";
- my $binpkg_options =
- defined $self->_channel_preference
- ? "?preference=" . $self->_channel_preference
- : "";
+ my $preference = $self->_channel_preference // '';
say $bin_fh <<"EOF";
[algaos]
-location = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg$binpkg_options
-sync-uri = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg$binpkg_options
+location = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg/$preference
+sync-uri = https://algaos.com/dist/@{[$self->_machine_id]}/binpkg/$preference
priority = 1
verify-signature = false
EOF