WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-import -np fetches indexes anyway while -p works as expected  (Read 3050 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
plz fix it JW
« Last Edit: July 16, 2015, 04:50:52 AM by jls_legalize »
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #1 on: July 16, 2015, 09:33:47 PM »
I will be able to get to it in the coming days.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #2 on: July 18, 2015, 09:08:51 PM »
Does it actually fetch the debinx files, or just echo the repos being used?  On my box it just echos the repos being used, main and security.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #3 on: July 19, 2015, 09:22:38 AM »
on a first run I see wget in ps, on a second,third, no.
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #4 on: July 19, 2015, 10:30:54 AM »
Ok, I will see.  It may be wget downloading the startup script and md5sum and dependency data tarball. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #5 on: July 20, 2015, 12:23:57 PM »
I have looked around to find why the first use has a fetch and the second and third do not, I don't see a reason yet, I will keep looking as time allows.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #6 on: July 20, 2015, 12:29:32 PM »
while running
sce-import -npb
I see
Code: [Select]
root     30269 30137  0 18:25 pts/2    00:00:00 wget -q -O - http://it.archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-i386//Packages.bz2
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #7 on: July 21, 2015, 06:21:56 PM »
Thank you, that helps point me where to look.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #8 on: July 21, 2015, 09:31:22 PM »
Are you booting, and then running the sce-import -np command?  Because if there is no /tmp/debinx, then debGetEnv is run.  Then on second and third and later runs it will not fetch.  The existence of /temp/debinx is the test, and it can't be hard coded in because we use different debinx's between Debian, Ubuntu, and armv7.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #9 on: July 22, 2015, 05:15:15 AM »
So I could add /tmp/debinx to /opt/.filetoollst
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #10 on: July 22, 2015, 06:11:09 AM »
Well, the /tmp/deb2sce.tar.gz is also expected to be there, using -p across rebootls was not intended by design.  But with those 2 files backed up, perhaps it would, we can try.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #11 on: July 24, 2015, 06:31:29 AM »
Hi
I've added
Code: [Select]
tmp/deb2sce.xlst.gz
tmp/debinx
tmp/debinx_security
and it seems ok: sce-import:
Code: [Select]
Using the -d option.
Using the -r option.
Using the -n option.
Using the -p option.


Importing ncmpcpp.


Using Package Index: /etc/sysconfig/tcedir/ubuntu_trusty_main_i386_Packages

Using Package Index: /etc/sysconfig/tcedir/ubuntu_trusty_security_i386_Packages

Using ubuntu Mirror: http://it.archive.ubuntu.com/ubuntu/

Using ubuntu Security Mirror: http://it.archive.ubuntu.com/ubuntu/

ncmpcpp is a standard ubuntu trusty package.

but if I don't use the -p option will those files be redownloaded?
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -np fetches indexes anyway while -p works as expected
« Reply #12 on: July 25, 2015, 09:37:09 AM »
Yeah, without the -p option all the debinx's are synced.