--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: plucker-setup: half the functionality is in shambles
- From: Dan Jacobson <jidanni@jidanni.org>
- Date: Sat, 08 Jan 2005 05:40:13 +0800
- Message-id: <E1Cn1q9-0001I0-AH@jidanni1>
Package: plucker
Version: 1.8-3
Severity: normal
File: /usr/bin/plucker-setup
$ plucker-setup
Setting up Plucker in /home/jidanni...
Creating default Plucker directory (/home/jidanni/.plucker)
Copying default config files...
Which stalls in sh -c pilot-xfer\040>\040/dev/null\0402>&1
because nobody tells the user to e.g., make sure the Palm is ready.
Maybe if stderr wasn't blocked, he would get the message.
[but see bottom]
We hit ^C.
The program 'pilot-xfer' is missing so the Palm applications cannot
be installed. You'll find them in /usr/share/plucker/palm.
No, pilot-xfer is not missing. Guess again. Also it would not be in
that directory.
Installation Finished
No, Installation incomplete.
Hmmm, let's see what the above command was doing on stderr:
$ pilot-xfer
ERROR: Insufficient number of arguments
Hit any key to continue..
No wonder. We never get further, Palm connected or not.
Looking at the source, we see you are making big assumptions about the
behavior of pilot-xfer. Why don't you use which(1) or something to see
if it is there, or just call it anyway and bomb out if it (or sh)
returns non 0.
BTW I filed a bug for pilot-xfer to return non-zero if given
insufficient number of arguments. So use which(1).
OK, after now changing:
if not os.system('true #pilot-xfer > /dev/null 2>&1'):
install_viewer()
I get to
Unable to open '/usr/share/plucker/palm/viewer_zh_CN.prc'!
Unable to open '/usr/share/plucker/palm/SysZLib.prc'!
Unable to open '/usr/share/plucker/palm/PluckerUserGuide.pdb'!
So as /usr/share/plucker/palm doesn't exist, looks like this part is
"breathware".
--- End Message ---