[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] duply (fka. ftplicity) & exit code
From: |
Michael Terry |
Subject: |
Re: [Duplicity-talk] duply (fka. ftplicity) & exit code |
Date: |
Tue, 15 Sep 2009 18:50:44 -0400 |
2009/9/15 <address@hidden>:
> EXIT CODES: I have a totally righteous complaint about duply not handling
> exit signals correctly. Because duply supports batch execution of duplicity
> commands the suggestion is to sum them up .. anything but zero obviously was
> erroneous somewhere. I had a look in the duplicity source and just found a
> state (1) in the case of error?
>
> Are there more? How is it designed?
A 1 error case is the most generic. That doesn't mean anything
special, and actually shouldn't be present in the current code. Any
other error code is a special code depending on the error case. See
duplicity/log.py's ErrorCode class. It has the enumeration.
-mt