WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SUGGESTION] xupgrade  (Read 2555 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
[SUGGESTION] xupgrade
« 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
« Last Edit: September 06, 2010, 01:16:01 AM by jls_legalize »
dCore user

Offline r2d2

  • Newbie
  • *
  • Posts: 2
Re: [SUGGESTION] xupgrade
« Reply #1 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.

Offline sandras

  • Jr. Member
  • **
  • Posts: 53
Re: [SUGGESTION] xupgrade
« Reply #2 on: September 06, 2010, 03:59:53 AM »
+1 i've had situations where this would have been very handy.  ;)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: [SUGGESTION] xupgrade
« Reply #3 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"
« Last Edit: September 06, 2010, 05:21:17 AM by Arslan S. »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: [SUGGESTION] xupgrade
« Reply #4 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.
10+ Years Contributing to Linux Open Source Projects.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: [SUGGESTION] xupgrade
« Reply #5 on: September 07, 2010, 12:48:08 PM »
What do you do about installing applications that depend on the not-to-be-updated application?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: [SUGGESTION] xupgrade
« Reply #6 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.
10+ Years Contributing to Linux Open Source Projects.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: [SUGGESTION] xupgrade
« Reply #7 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
dCore user