WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
error out if already installed
« on: February 12, 2013, 03: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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: error out if already installed
« Reply #1 on: February 15, 2013, 10:23:21 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.
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: 1217
Re: error out if already installed
« Reply #2 on: February 15, 2013, 11:13:49 AM »
Ah, so you're going to change tce-load -wi so that it will check before trying to download?
« Last Edit: February 15, 2013, 11:16:30 AM by hiro »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: error out if already installed
« Reply #3 on: February 15, 2013, 11:21:14 AM »
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.