WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating tcz apps  (Read 47849 times)

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #105 on: November 13, 2009, 02:58:25 AM »
ver 2.8
..better handling of database, so md5's stay current.  

fixed -d option (dependency checking) bug;  (neglected to remove some test code)

Uses: wget.tcz; recommended links browser for viewing list, dep, info files. Set paths at top of script.

edit: Requires dialog.tcz as of tc_2.6  (dialog no longer in base)
  
Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 03:54:48 AM by jpeters »

Offline philip

  • Full Member
  • ***
  • Posts: 125
Re: Updating tcz apps
« Reply #106 on: November 18, 2009, 02:06:52 PM »
Subtle bug: "update Mplayer-nodeps" fails with "No match found in tc directory". I think this happens because the second grep in the pipeline here
Code: [Select]
APP="$(busybox find ${A}.tc* | busybox grep -v .dep | busybox grep -v .txt)" &>/dev/null matches the substring "dep" in the extension's name, leading to the variable $APP getting assigned the null string. Some tuning of those grep commands appears to be required. (But hey, update worked on everything else! I'm still grateful!)

[This was update version 2.6, but I copied the offending line of script from the latest version, so I'm confident that the problem is still worth fixing.]

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #107 on: November 18, 2009, 02:47:28 PM »
Thanks philip...hope this fixes it:

Version 2.8.1


Better grep commands  

Uses: wget.tcz; recommended links browser for viewing list, dep, info files. Set paths at top of script.
Requires dialog.tcz as of tc_2.6  (dialog no longer in base)

Version 2.9:

added color for update candidates, prompt to reinstall
added "| less" to db and tce_dir viewer ( -vx , -v)
added test to remove error message when updating

Version 2.9.1

Added date to database viewer (update -vx)
  
Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 03:52:07 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #108 on: November 26, 2009, 04:22:11 AM »
updated to version 2.9


edit: devs2dev script for cleaning database files. Edit as we eliminate other 'plurals' from rep.

http://forum.tinycorelinux.net/index.php?topic=4047.0
« Last Edit: November 27, 2009, 12:14:22 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #109 on: November 28, 2009, 04:16:50 AM »
Version 2.9.1 :
 
Added date to database viewer (-vx)

Old date probably means ext is discontinued
« Last Edit: November 28, 2009, 04:28:00 AM by jpeters »

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Updating tcz apps
« Reply #110 on: November 28, 2009, 06:20:42 AM »
I wonder if you could add the updating of apps in/tce/optional? I keep a fair bit of stuff there for occasional use.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #111 on: November 28, 2009, 06:04:00 PM »
OK; think this will do it.  

Version 3.0

New options:
  
    -o APP "  (eg," update gnumeric"}  ; updates APP in tc/optional dir
     -og"  ;        graphic option for updating tc/optional extensions
    -remop ; graphic option to remove extensions from /optional dir
    -co    ; checks for update candidates in /optional dir
     -id    ; updates/builds database to dialog for new install (tce-load -w)  to /optional dir
     -idx   '    lists database in dialog for new download to /optional dir
     -vo    ; views /optional directory

Version 3.1    New options: "update -sd <APP>"  ; searchs within tce_dir dep files.    

Uses: wget.tcz; recommended links browser for viewing list, dep, info files. Set paths at top of script.
Requires dialog.tcz as of tc_2.6  (dialog no longer in base)

Tutorial:
[removed due to policy]



« Last Edit: December 08, 2009, 03:50:38 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #112 on: November 29, 2009, 04:07:45 AM »
Added new options for tce/optional directory: view, update, remove files, new downloads

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Updating tcz apps
« Reply #113 on: November 29, 2009, 04:55:28 AM »
Thanks! :)

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #114 on: November 29, 2009, 05:41:47 AM »
Thanks! :)

You're welcome.  Just updated with -idx option for fast downloads using the database. This should provide
nice tools for maintaining the /optional directory.  Thanks for the suggestion.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #115 on: November 29, 2009, 05:46:18 PM »
Version 3.1

New search option for finding listings within tce_dir dep files. Also spruced up --help a bit.

example: "update -sd fontconfig"
[removed due to policy]apps/update-sd.png


edit: removed potential bug in -remop
« Last Edit: November 29, 2009, 07:25:50 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #116 on: December 04, 2009, 04:02:04 AM »
version 3.2

updated view options; added "update -ve" for viewing installed extensions

Uses: wget.tcz; recommended links browser for viewing list, dep, info files. Set paths at top of script.
Requires dialog.tcz as of tc_2.6  (dialog no longer in base)

see update --help

Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 04:16:07 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #117 on: December 08, 2009, 03:23:30 AM »
Version 3.3

Added automatic backup of updated extensions in /tce/backup folder
New options:

--restore (or -res):  Lists backups in Dialog for restoring to tce_dir
-rembak: Lists backup files for deletion.

Automatically restores extension to tce dir if an update fails.  

updated grep, find searches.
added tests for /tmp/update-checks

Uses: wget.tcz; recommended: links browser for viewing list, dep, info files. Set paths at top of script.
Requires dialog.tcz as of tc_2.6  (dialog no longer in base)

see update --help

Tutorial:
[removed due to policy]

« Last Edit: December 08, 2009, 04:20:12 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #118 on: December 14, 2009, 08:09:35 PM »
Version 3.4.1

Improved handling/building of database: now in tce dir.

add test to /tmp/choice
set Dialog menu to reflect /install/mount/download choice
add tests and echo results for successful deletions with -rem/-rembak/-remop
added automatic database folder install in tce dir, with option to build
new option:
    --database
  Removes old; downloads new md5 database
Uses links.tcz browser by default
Added "busybox" to ls for "-le" option  

Uses: wget.tcz, dialog.tcz,  and links.tcz  

see update --help

Tutorial:
[removed due to policy]
« Last Edit: December 15, 2009, 09:38:28 PM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #119 on: December 15, 2009, 09:39:40 PM »
Improved code for --database  ( buggy test).
« Last Edit: December 15, 2009, 09:42:00 PM by jpeters »