[sysadmin/neon-tooling] lib/apt: override type when mangling repo names in install_check

Carlos De Maine <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2248c9b2b6e6cea1ec6ad3beb73bc4d0378f848c by Carlos De Maine.
Committed on 04/08/2026 at 11:04.
Pushed by carlosdem into branch 'master'.

override type when mangling repo names in  install_check

M  +3    -1    lib/apt/repository.rb

https://invent.kde.org/sysadmin/neon-tooling/-/commit/2248c9b2b6e6cea1ec6ad3beb73bc4d0378f848c

diff --git a/lib/apt/repository.rb b/lib/apt/repository.rb
index 6cf50577..6074dcbf 100644
--- a/lib/apt/repository.rb
+++ b/lib/apt/repository.rb
@@ -41,8 +41,10 @@ module Apt
       @deb822_sources = deb822_sources
       @series ||= OS::VERSION_CODENAME
       @type = ENV.fetch('TYPE')
+      puts "name of repo = #{@name}"
       if @name.start_with?("http://")
         @name = @name.delete_prefix("http://")
+        @type = @name.split('/').last
         @name = @name.tr('/', '_')
         @name = "archive_uri-http_#{@name}-#{@series}"
         @deb822_sources = <<~DEB822_SOURCES
@@ -159,4 +161,4 @@ module Apt
       end
     end
   end
-end
+end
\ No newline at end of file
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.