maybe PatchScripts should include an if [ -f ] then else exit 1 sort of thing and just make it a policy? Just throwing out an idea to get it started :D
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.


On 27-Jan-05, at 6:26 PM, Daniel Macks wrote:

I tried to compile a package that contained the fairly standard:

  sed 's|@PREFIX@|%p|' < %a/%n.patch | patch -p1

in PatchScript and due to a screwup on my part, that patchfile didn't
exist. An error message was reported by sed, however, the build
process then continued!

This appears to be just one example of a common feature of shell
pipelines, rather than strictly a bug in fink's script handler. For
example, from both bash and tcsh on OS X:

  touch /usr/bin/foo | echo "A" | echo "B"

gives an error message from touch and echoes "B", meaning 'touch
failed but [touch + first echo] succeeded. So when fink uses system()
to execute the compound statement, it merely sees "overall success".
This appears to be the case on linux also, so it's not just an OS X
shell bug. That means even putting this thing in a formal #!/bin/bash
-e *Script field won't save us since still the compound expression as
a whole "succeeds".

Thoughts? Creative solutions?

dan

--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel




------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to