[ubuntu-art] Backtestground Explained

Сергей shnatsel at gmail.com
Sat Jan 22 11:05:04 UTC 2011


2011/1/22 Thorsten Wilms <t_w_ at freenet.de>

> On Sat, 2011-01-22 at 12:53 +0300, Сергей wrote:
> > I think it happens because extract-background-context script doesn't
> > return an exit code indicating success. You should make sys.exit(0)
> > the last operation of your script to inform other scripts that the
> > context was extracted successfully.
>
> That made no difference, though I guess I should use sys.exit, anyway.
>
Weird. I shall investigate this.


> ----
> which 'extract-background-context' && extract-background-context
> on_white.png on_black.png; rm on_white.png on_black.png || echo "Sorry,
> you don't have backtestground installed" > /dev/stderr && exit 1
> ----
> , note the "; rm on_white.png on_black.png"
>
> makes it work.
>
Yes, but it doesn't check for bactestground availability anymore. It checks
if rm was successful and if it wasn't, prints that backtestground is not
installed.

Try this version, it's more structured.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-art/attachments/20110122/fe20e525/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto-extract-context
Type: application/octet-stream
Size: 1341 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-art/attachments/20110122/fe20e525/attachment-0001.obj>


More information about the ubuntu-art mailing list