WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-import doesn't stop if an invalid entry is found in the "lst" file  (Read 1729 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
« Reply #1 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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
« Reply #2 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?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't stop if an invalid entry is found in the "lst" file
« Reply #3 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.