dCore Import Debian Packages to Mountable SCE extensions > dCore X86

sce-update error

(1/2) > >>

nitram:
Still tweaking --help files, good for testing :)

Using  sce-update -n emelfm  or  sce-update -n nano  seperately work well. Attempting to check more than one SCE at a time, however, results in error message. Looks like  sce-update SCE  is currently only set up to check one SCE at a time, not  sce-update emelfm nano  for example. No big deal, don't really need this feature myself but the error output is not helpful to user. Is it possible to error output 'update check only one SCE at a time' or similar?

--- Code: ---tc@box:~$ sce-update -n emelfm nano
debian
No Package Index Available
Error in updating needed DEBINX files.  Exiting...

--- End code ---

Jason W:
I can put in a test like below at the beginning of sce-update to echo the error of entering 2 or more SCEs to update in one session.

if [ -n "$2" ]; then
     echo "Warning: only one SCE per sce-update session can be entered at the command line.""
     echo "Use the select menu to check more than one SCE per session by running 'sce-update.'"
     exit 1
fi

nitram:
Something like that would be great, hope to get you additional --help and echo revisions tonight, thanks.

nitram:
Sorry just checked, if you're planning on simple cut/paste of your post into script. There are two double-quotes at the end of first echo and the echos don't read well in 80 character wide terminal. Something like this please if you don't mind, thanks.

--- Code: ---if [ -n "$2" ]; then
     echo "Warning: only one SCE per sce-update session can be entered in command line."
     echo "Run 'sce-update' to check more than one SCE per session."
     exit 1
fi

--- End code ---

Jason W:
Ok, I am at work on Windows and typed the lines here for example and have not tested.  I will use your error wording. Thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version