WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating tcz apps  (Read 47912 times)

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #75 on: August 30, 2009, 01:06:59 PM »
New option: "update -cx"  Uses existing database for quick update check of tce directory.
To build local database, use "update -i {tce,tce} and set path to DB at top of script.

Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 04:00:36 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #76 on: September 06, 2009, 01:06:44 PM »
Fixed bug in "update -d  ..." (checks deps).  
« Last Edit: September 06, 2009, 01:09:00 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #77 on: September 09, 2009, 05:19:39 AM »
updated for tc_2.3.1

new options for tc_2.3:
  -ir  installs tcz to ram (creates new or adds to persistent database)
  -irx installs tcz to ram  using persistent database (fast loading)
  -rem [APP]: removes APP from tce directory, umounts tcz; Dialog or [CLI]
               Lists (but doesn't remove) deps; removes symlinks;
               allows for reinstall with menu/icon fixes.  
  Improved -g  (Dialog) so that update no longer needs to be in PATH
  Persistent DB (if it exists) now gets updated with all -c, -d, and -f checks.
  Fixed -d dependency checks  

note: set correct path to DB at top of script (or comment out with leading "#")
    update -i requires wget.tcz/e

Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 04:01:03 AM by jpeters »

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: Updating tcz apps
« Reply #78 on: September 09, 2009, 10:58:48 AM »
new options for tc_2.3:
  -ir  installs tcz to ram (creates new or adds to persistent database)
  -irx installs tcz to ram  using persistent database (fast loading)
  -rem [APP]: removes APP from tce directory, umounts tcz; Dialog or [CLI]
               Lists (but doesn't remove) deps; removes symlinks;
               allows for reinstall with menu/icon fixes. 
  Improved -g  (Dialog) so that update no longer needs to be in PATH
  Persistent DB (if it exists) now gets updated with all -c, -d, and -f checks. 


You have created quite a master piece. Thanks for the effort. However, when I go to use the script I find that I can't remember all the options usage rules. Would it be possible to create a terminal command menu to simplify operation?
big pc man

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #79 on: September 09, 2009, 12:01:00 PM »
There's an "update --help"   Is that enough ?      

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #80 on: September 10, 2009, 09:59:42 PM »
added permission error fix.  

-d wasn't checking...fixed.
« Last Edit: September 11, 2009, 04:38:20 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #81 on: September 11, 2009, 05:31:10 PM »
Update Tutorial

[removed due to policy]

« Last Edit: September 12, 2009, 04:16:11 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #82 on: September 13, 2009, 01:58:52 AM »
Updated for TC_2.3.1

improved code for dependency checks  
« Last Edit: September 16, 2009, 01:10:00 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #83 on: September 16, 2009, 01:08:51 AM »
Added permission bug fixes for tce-load -i -r -w 

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #84 on: September 17, 2009, 04:11:35 AM »
Added options -dep, -list, and -info.  Update does a search for the file, lists the downloaded results, and reads them. Thus "update -info gnumeric" will list "gnumeric.tcz.info" and read it to terminal.  "update -info vim" will list:

vim-7.2-bin.tcz.info   vim_7.2.245.tcz.info
vim-7.2-docs.tcz.info  vimtutor.tcz.info

and then cat into one file to terminal.

Also added: update -vx.  This lists the files from the persistent database if present.

EDIT: improved report code for easier viewing of multiple files  
EDIT: fixed misplace "fi" in permission check.

Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 04:01:52 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #85 on: September 25, 2009, 07:19:17 PM »
For version_2.4rc1:

Eliminates use of tce directory;  uses "update -i",  "update -ix"  (no {tce/tcz}) for non-ram tcz installs.
Added  options:
      -inf     Reads info file using BROWSER and database if present. (set at top of script)
      -dp     Reads dep files using BROWSER and database if present.
      -ls       Reads list files using BROWSER and database if present.

                         example: "update -inf gnumeric"  

If no browser or database , options act as shortcut to -info, -dep, -list option (downloads file from rep).  

Recommended: links browser.  VERY FAST
Uses wget.tcz

"update -vx" will view the database.

Added a few more tests:
   Tests if trying to install a tce
   Tests if an update fails

Added search option  -s
 
Tutorial:
[removed due to policy]
 

« Last Edit: December 08, 2009, 04:02:26 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #86 on: September 26, 2009, 11:41:44 AM »
bug fix:  had misplaced a "fi" in the permission check, so wasn't updating correctly

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #87 on: September 27, 2009, 05:17:51 PM »
bug fix:  fixed multi-call error when using BROWSER for viewing .info, dep, .list files.
 

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #88 on: September 28, 2009, 02:44:27 AM »
Changed new options to shortcuts that automatically read from browser if present. (less typing). 

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: Updating tcz apps
« Reply #89 on: September 28, 2009, 10:34:50 AM »
Added an exit, shortened some script, changed a few tests that weren't working correctly. 

edit: moved exit to better location in script.

Now that tc has gone through many revisions, isn't it true that the latest extension revision might not work with previous versions of tc. I wonder if there should be a check of some kind that warns about this potential mismatch before the update takes place.
big pc man