WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: error out if already installed  (Read 3017 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
error out if already installed
« on: February 12, 2013, 06:55:54 AM »
When I use tce trying to download a package that already exists in my tcedir the package still gets mounted after this message
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable

The problem with this is that dependencies are not loaded as they would be if I used tce-load -i packagename.
An option to load packages like with the -i option but from inside ab would appeal me, but it would also be ok to error out like it used to be.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: error out if already installed
« Reply #1 on: February 15, 2013, 01:23:21 PM »
When I use tce trying to download a package that already exists in my tcedir the package still gets mounted after this message
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable

The problem with this is that dependencies are not loaded as they would be if I used tce-load -i packagename.
An option to load packages like with the -i option but from inside ab would appeal me, but it would also be ok to error out like it used to be.
tce merely calls tce-load with either -iw or -ow. It is merely a wrapper for easy selection to download extensions. I will add a check if already downloaded and exit with such message.
10+ Years Contributing to Linux Open Source Projects.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: error out if already installed
« Reply #2 on: February 15, 2013, 02:13:49 PM »
Ah, so you're going to change tce-load -wi so that it will check before trying to download?
« Last Edit: February 15, 2013, 02:16:30 PM by hiro »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: error out if already installed
« Reply #3 on: February 15, 2013, 02:21:14 PM »
No. Not going to ignore a specified flag to tce-load that would be heresy. The change is to tce.
10+ Years Contributing to Linux Open Source Projects.