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.
- AuthorPosts
- March 14, 2023 at 11:50 am #102008Member
PPC
::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.
March 28, 2023 at 5:04 am #103404MemberRobin
::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
RobinWindows is like a submarine. Open a window and serious problems will start.
March 28, 2023 at 12:37 pm #103428ModeratorBrian Masinick
::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 MasinickOctober 3, 2023 at 10:40 am #118620MemberPPC
::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.
Attachments:
- AuthorPosts
- You must be logged in to reply to this topic.