conditional display of repo-manager item in ControlCenter

Forum Forums antiX-development Development conditional display of repo-manager item in ControlCenter

  • This topic has 0 replies, 1 voice, and was last updated Nov 7-1:49 pm by Anonymous.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13222
    Anonymous

      https://gitlab.com/antiX-Linux/control-centre-antix/blob/4363b6fd5e798233c423bf5d4ad21e4ac796d423/antixcc.sh#L502

      repomanager_prog=/usr/sbin/broadcom-manager
      test -x $repomanager_prog && repomanager_entry=$(entry \
           $ICONS/repo-manager.png \
           "su-to-root -X -c repo-manager &" \
           $"Manage APT Repositories")

      repo-manager is not shown if /usr/sbin/broadcom-manager is not present.
      I couldn’t grasp the logic of that, so I temporarily renamed broadcom-manager then launched repo-manager from commandline.
      …and, indeed, the absence of b-m doesn’t prevent repo-manager’s operation.

      —————
      related:

      repo-manager
      Launched it and chose the next-to-bottom entry (Los Angeles), then closed the window and performed apt update.

      --- snip ---
      Fetched 17.2 MB in 10s (1,622 kB/s)                                                                                                                                 
      Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/antix.list:2 and /etc/apt/sources.list.d/antix.list:3
      Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/antix.list:2 and /etc/apt/sources.list.d/antix.list:3
      Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/antix.list:2 and /etc/apt/sources.list.d/antix.list:3
      --- snip ---

      Yep, /etc/apt/sources.list.d/antix.list now contains:

      # Use with Debian Stable/stretch repositories. Set as default for antiX-17. Note new repos
      deb http://iso.mxrepo.com/antix/stretch/ stretch main nosystemd
      deb http://iso.mxrepo.com/antix/stretch/ stretch main nosystemd
      
      # Use with Debian Testing/'rolling' repositories. 
      #deb http://repo.antixlinux.com/testing testing main nosystemd
      #deb-src http://repo.antixlinux.com/testing testing main nosystemd
      
      # Use with Debian Sid repositories. 
      #deb http://repo.antixlinux.com/sid sid main nosystemd
      #deb-src http://repo.antixlinux.com/sid sid main nosystemd

      I restored the broadcom-manager file (so, ruleout its absence as a variable condition)
      and re-ran the repo-manager, and chose “Sweden”. The result:

      deb http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch/ stretch main nosystemd
      deb http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch/ stretch main nosystemd

      So, it’s a bug and I don’t know whether the second line is accidental, or should be an outcommented-by-default deb-src placeholder line
      #deb-src http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch/ stretch main nosystemd`

      —————-

      a separate bug, or call it a usability issue:

      After choosing an item within repo-manager and clicking “Apply”, the radiobox selection snaps back to displaying the last item in the list as currently selected.
      Similarly confusing, each time repo-manager is launched, radiobutton always (unconditionally) indicates the last item is the currently selected item.

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.