Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: jls on February 19, 2016, 05:00:38 PM

Title: sce-import doesn't stop if an invalid entry is found in the "lst" file
Post by: jls on February 19, 2016, 05:00:38 PM
 :'(
Title: Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
Post by: Jason W on February 19, 2016, 06:17:41 PM
Entries that are not found as packages are ignored.  I share list files between the Debian and Ubuntu dCores, I can have both iceweasel and firefox and the right one gets imported depending which dCore I run it on.  I personally don't want sce-import to exit if it finds an entry that is not found in the particular port.
Title: Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
Post by: nitram on February 19, 2016, 06:52:10 PM
Just tested for practice, the script stops, provides warning, notifies user of non-existant packages in the list, allows user to proceed or exit. That's decent, user can then exit and modify the list file.

Code: [Select]
nanomeister
junk
 
Warning: The above files in /tmp/nanotiny.lst do not exist in dCore repos.
 
To proceed anyway press Enter, (n)o exits:

Code: [Select]
tc@box:/tmp$ cat nanotiny.lst
nano-tiny
nanomeister
junk

This was with a new list, not sure about re-importing. jls were you speaking of a new list or performing an update/re-import?
Title: Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
Post by: Jason W on February 19, 2016, 08:29:04 PM
I forgot, this subject had come up before and I made the warning pop up so one can proceed or not.  Works here with either a new list file, or the existing sce.lst in the sce dir.  The prompt to proceed is when the -n noninteractive option is not used, else it just echoes the packages not found.