Possible change to antiX updater

Forum Forums antiX-development Development Possible change to antiX updater

  • This topic has 33 replies, 9 voices, and was last updated Oct 3-10:40 am by PPC.
Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #102008
    Member
    PPC
      Helpful
      Up
      0
      ::

      I use antiX-updater myself and I noticed that in my work desktop PC, it now always report that there’s one update, when none is available. I’ll try to change the script to avoid that from happening (never happened before). While I’m at it, I’ll checkout how easy it would be to also present a box with all packages that can be updated…

      Edit: this happens because, apt list –upgradable does not come up empty, but it reports:

      Listing... Pronto
      libvlccore9/bullseye 3.0.18-2.0nosystemd1 amd64 [upgradable from: 3.0.18-0+deb11u1.0nosystemd2]
      N: There are 2 additional versions. Please use the '-a' switch to see them.

      P.

      • This reply was modified 8 months, 3 weeks ago by PPC.
      #103404
      Member
      Robin
        Helpful
        Up
        0
        ::

        Hello PPC,
        Another suggestion to make the script more reliable on long term:
        The apt command is not meant for scripting and should be replaced by something like apt-get or apt-cache or dpkg-query within scripts.
        Your yad-updater script throws constant warnings:

        WARNING: apt does not have a stable CLI interface.
        Use with caution in scripts.
        23 /tmp/list_of_upgradable_packages.txt
        WARNING: apt does not have a stable CLI interface.
        Use with caution in scripts.

        it now always report that there’s one update, when none is available. … (never happened before)

        You will face constant issues like that, since they constantly change something in its output. Precisely this is what the warning is about.

        Many greetings
        Robin

        Windows is like a submarine. Open a window and serious problems will start.

        #103428
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          Great suggestion Robin!
          Apt is a simplified interface.
          apt-get is the main package installation tool and dpkg provides the foundation for all of the packaging programs.

          As you also note, apt-cache search is the mature command search tool and dpkg-query is the fundamental tool.

          I agree with your recommendation.

          --
          Brian Masinick

          #118620
          Member
          PPC
            Helpful
            Up
            0
            ::

            I have a tiny proposed change to yad-updater that makes the “automatic update” procedure look like it’s not running on a terminal, but on a “regular window”.
            It’s a purely vistual change, in the setting that the terminal uses (hide the menu bar, hide the cursor, use GTK colors for white background and black letters). The idea is that regular antiX users that do not like using the terminal don’t even notice they are really using the terminal, via an automated GUI…

            Edit: @anticapitalista – I already made a commit over at http://gitlab.com/antiX-Linux/yad-goodies

            P.

            • This reply was modified 2 months ago by PPC.
            • This reply was modified 2 months ago by PPC.
          Viewing 4 posts - 31 through 34 (of 34 total)
          • You must be logged in to reply to this topic.