Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: jls on September 06, 2010, 12:51:16 AM

Title: [SUGGESTION] xupgrade
Post by: jls on September 06, 2010, 12:51:16 AM
hi
I'm suggesting to modify the tce-update script to support xupgrade.lst where the user can elencate the extensions that he doesn't want to be upgraded
Title: Re: [SUGGESTION] xupgrade
Post by: r2d2 on September 06, 2010, 01:03:51 AM
hi
I'm suggesting to modify the tce-update script to support xupgrade.lst where the user can elencate the extensions that he don't want to be upgraded

Good, I like it. One more asking for.
Title: Re: [SUGGESTION] xupgrade
Post by: Sandras on September 06, 2010, 03:59:53 AM
+1 i've had situations where this would have been very handy.  ;)
Title: Re: [SUGGESTION] xupgrade
Post by: Arslan S. on September 06, 2010, 05:19:03 AM
instead like in most distros, there can be a list with check boxes so you can select which extension to update, also a check box for "select all"
Title: Re: [SUGGESTION] xupgrade
Post by: roberts on September 06, 2010, 10:41:25 AM
Appsaudit  "Updates"- > "Check for Updates" already allows for user selective updates while tce-update does all.

So this request must be for the batch command line. Seems reasonable, so I will proceed for 3.2.
Be aware that such list must be used judiciously, as you are possibly preventing your system from being consistent.

Present workarounds are:

1. Remove .md5.txt for those extensions that you do not want updated.
2. Rename your extension, e.g., with a prefix so as to be eligible for an update.
Title: Re: [SUGGESTION] xupgrade
Post by: gerald_clark on September 07, 2010, 12:48:08 PM
What do you do about installing applications that depend on the not-to-be-updated application?
Title: Re: [SUGGESTION] xupgrade
Post by: roberts on September 07, 2010, 03:32:06 PM
Perhaps the effort is not worth the result; that being possibly an inconsistent system prone to failures.
For those who know precisely what they are doing can use one of two workarounds. Typically for "not depended upon by any" extensions.
Title: Re: [SUGGESTION] xupgrade
Post by: jls on September 07, 2010, 11:58:20 PM
I'm already using a modified tce-update version, which doesn't differ too much from the original:
after line 29 I inserted
Code: [Select]
if [ $(grep "^$TARGET" "${TCEDIR}"/xupgrade.lst) ]; then
    echo "${YELLOW}$TARGET${NORMAL} won't be upgraded because listed in xupgrade.lst"
  else
and of course a "fi" at the end of the function