Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: jls on July 16, 2015, 04:42:46 AM

Title: sce-import -np fetches indexes anyway while -p works as expected
Post by: jls on July 16, 2015, 04:42:46 AM
plz fix it JW
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W on July 16, 2015, 09:33:47 PM
I will be able to get to it in the coming days.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W 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.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: jls on July 19, 2015, 09:22:38 AM
on a first run I see wget in ps, on a second,third, no.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W 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. 
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W 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.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: jls 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
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W on July 21, 2015, 06:21:56 PM
Thank you, that helps point me where to look.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W 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.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: jls on July 22, 2015, 05:15:15 AM
So I could add /tmp/debinx to /opt/.filetoollst
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W 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.
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: jls 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?
Title: Re: sce-import -np fetches indexes anyway while -p works as expected
Post by: Jason W on July 25, 2015, 09:37:09 AM
Yeah, without the -p option all the debinx's are synced.