WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating tcz apps  (Read 47625 times)

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: Updating tcz apps
« Reply #120 on: December 16, 2009, 02:57:01 AM »
Hi jpeters,
your last update script* worked fine:


Running over your code and this thread I got the impression, the core updating logic might be the four steps only


my one click update solution - posted last month - is based on.


Naturally there are some additional details and a lot of optical stuff if you want to create a working solution - what can blow up these four steps to more than 1,000 lines of code.

But nevertheless the core are these four steps only, or did I overlook something?

JoXo009

---
* The script link may be visible and working only if you are logged in to this forum

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #121 on: December 16, 2009, 04:02:01 AM »
Basically it..except update does a fresh check with the downloaded md5 instead of a diff against the old one.

Code: [Select]
for I in ${FILE}
 do
    sudo wget "ftp://$MIRROR/$DIR/${I}"  
 done

cd ${TCEDIR}
for I in ${FILE}
 do
         md5sum -c  /tmp/md5/${I} >>/tmp/file-check  
done

I'm not sure what you're asking. Update works without loading X , and includes a variety of checks for updating in addition to all search and appbrowser functions. It maintains a database for rapid offline checking, in addition to backups for updated extensions and includes various viewers and extension removal options. All the code is completely functional, and is devoid of GUI eye candy.

Note: To eliminate reboot, icons and menus have to be managed, in addition to umounting, deleting symlinks, etc.  
« Last Edit: December 16, 2009, 04:13:22 AM by jpeters »

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: Updating tcz apps
« Reply #122 on: December 16, 2009, 10:44:23 AM »
Thanks, jpeters

Quote from: jpeters
Basically it
I just wanted to make sure, that I didn't overlook some important detail in the ready made virtual image I'm working on.

Quote from: jpeters
To eliminate reboot, icons and menus have to be managed, in addition to umounting, deleting symlinks, etc.  
That's clear, but doesn't affect my version, as updating is combined with automatic reboot in my version for security reasons.

Quote from: jpeters
... the code is completely functional, and is devoid of GUI eye candy.
You are right, code functionality is important and an application isn't necessarily better because it is 'graphical'.

On the contrary, graphical interfaces often are just 'eye candy', funny pictures distracting the user from the real content.

On the other hand, script- and command line interfaces work for expert users only. And the more variations are build in the more expertise in needed.

So by adding a feature to a script interface you reduce the number of potential useres maybe by half. After adding ten features you may remain as single user as it makes no sense for others to invest two hours in learning features saving half an hour only.

To my opinion developping new features makes sense only if combined with an important reduction of learing time.

A possibility might be to offer a kind of manual as you do with your tutorial:
[removed due to policy]

Another possibility might be to create a human interface, something which uses all kind of media to communicate meaning and needed steps in an intuitive way understandable even for the newcomer.
« Last Edit: December 16, 2009, 10:47:26 AM by JoXo009 »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #123 on: December 16, 2009, 12:46:03 PM »
I only post what I use myself. Regarding "safety", I can only say that after thousands of tests, it hasn't broken anything yet, and surprisingly I've never even needed to reboot; also no file corruptions.  I'll have to conclude that it's completely safe on my setup, which is PPR, grub install with persistent tce directory on my HD.  I wouldn't include "batch" anything, and you won't find "-q" (quiet mode) anywhere in the code, because I want to see everything that's happening for every download/update. 

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #124 on: December 18, 2009, 07:21:06 PM »
Version 3.5

added graphic/CLI choice to extension check:  (e.g "update -f"  or "update -f APP").
added graphic/CLI choice to extension check:  (e.g "update -d"  or "update -d APP").
added graphic/CLI choice to shared dependency check:  (e.g "update -sd"  or "update -sd APP").
added graphic/CLI choice to   -inf:  (e.g "update -inf"  or "update -inf APP").
added graphic/CLI choice to   -dp:  (e.g "update -dp"  or "update -dp APP").
added graphic/CLI choice to   -ls:  (e.g "update -ls"  or "update -ls APP").
better grep code for -g option
added <return> commands after functions.

New:  "gupdate": GUI frontend written in tcl-tk.  Needs "update" in PATH or same directory.
requires: tcl_tk.tczl.  
[removed due to policy]apps/gupdate.png


Update uses: wget.tcz, dialog.tcz,  and links.tcz  


Tutorial:
[removed due to policy]


« Last Edit: December 19, 2009, 04:57:33 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #125 on: December 19, 2009, 04:59:20 AM »
Added binding to entry widget so it searches with <return> as well as button

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #126 on: December 20, 2009, 09:37:41 PM »
For TC/MC_2.7 :no longer supports direct tcz2ram install.

Version 3.6

Removed tce-load -r option.


Update uses: wget.tcz, dialog.tcz,  and links.tcz 

"gupdate": GUI frontend written in tcl-tk.  Needs "update" in PATH or same directory.
requires: tcl_tk.tczl.
[removed due to policy]apps/gupdate.png

Tutorial:
[removed due to policy]



   

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #127 on: December 21, 2009, 05:50:19 AM »
Here's a neat function to search list files (with listbase). I'll  post it in the next version:

[removed due to policy]apps/gupdate.png
« Last Edit: December 21, 2009, 04:44:27 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #128 on: December 21, 2009, 04:43:54 PM »
Version 3.9

Listbase:  folder of list files for entire rep. Useful for finding extensions that use particular files.  
( presently about 17M....optional if you don't need searches)

added option --listbase: builds /db-list folder of list files in tce dir
added option -sl: searches through list files using listbase.
added rotdash  when building database and listbase.
gupdate: added button for searches through list files
gupdate: added offline tce dir check (-cx) to menu

gupdate: GUI frontend written in tcl-tk.  Needs "update" in PATH or same directory.
requires: tcl_tk.tczl.  
[removed due to policy]apps/gupdate.png

Update uses: wget.tcz, dialog.tcz, diffutils.tcz  and links.tcz  

Tutorial:
[removed due to policy]

« Last Edit: December 23, 2009, 06:38:56 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #129 on: December 22, 2009, 04:57:42 AM »
Added automatic checks for dep file changes  with file (-f) and file dep (-d) checks.
Fixed bug in file checks.  

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #130 on: December 23, 2009, 06:36:24 AM »
Ver 3.9

added option -cd: checks dep files in tce dir for changes.
 Note: uses diffutils.tcz for checks.


added depcheck to gupdate
« Last Edit: December 23, 2009, 06:40:51 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #131 on: December 27, 2009, 02:29:37 PM »
Version 4.1

Removed bug in -cd  (dep check); should work correctly now
Added option -vd: Views dependencies files in the tce dir; another tool to make sure all dep files are correct.
[removed due to policy]apps/view-deps.png


Update uses: wget.tcz, dialog.tcz,  and links.tcz

"gupdate": GUI frontend written in tcl-tk.  Needs "update" in PATH or same directory.
requires: tcl_tk.tcz.
[removed due to policy]apps/gupdate.png

Tutorial:
[removed due to policy]
« Last Edit: December 28, 2009, 02:30:23 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #132 on: December 28, 2009, 02:29:38 AM »
Version 4.1
added:  -vd  now shows extensions listed  in dep files not present in tce dir.
(note: a misplaced name will result in boot failure).

[removed due to policy]apps/view-deps.png
« Last Edit: December 28, 2009, 02:39:04 AM by jpeters »

Offline Tahoe

  • Newbie
  • *
  • Posts: 15
Re: Updating tcz apps
« Reply #133 on: December 29, 2009, 07:22:46 PM »
Howdy Folks,

Pardon me asking whether this is the tool to remove an on-demand pkg I had installed to /optional. If there's another way I haven't yet read about a pointer would do. Thanks.


People tend to make rules for others and exceptions for themselves. Well now, how about that?

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #134 on: December 29, 2009, 07:27:22 PM »
Howdy Folks,

Pardon me asking whether this is the tool to remove an on-demand pkg I had installed to /optional. If there's another way I haven't yet read about a pointer would do. Thanks.




use "update -remop"