Commit Graph

17 Commits

Author SHA1 Message Date
Marcus Schäfer
2fd177bd27
Better logging if Path.which doesn't find the file 2016-08-11 10:43:54 +02:00
Marcus Schäfer
f1e7984a82
Fixup Command.run if called with raise_on_error set to False 2016-08-10 21:25:04 +02:00
David Cassany
2f7294e25d indentation fix 2016-08-10 18:21:37 +02:00
David Cassany
0c4256e719 Updated Command to use Path.which
Command.run and Command.call now make use of Path.which in order
to test if the command is available or not. Also Path.which has
been extended in order to support custom environments and to be
able to test file permissions (read. write, execute)
2016-08-10 16:38:33 +02:00
David Cassany
0fdd209e73 Command validation
This commit includes a validation in Command.run and Command.call
in order to verify the existance of the command before running it.
It case it is not found in the specified environment it raises a
KiwiCommandNotFound Exception.
2016-08-05 18:38:27 +02:00
Marcus Schäfer
20b02bf683
Explain why bytes type is redefined
In python2 bytes is string which is different from the bytes
type in python3. The bytes type from the builtins generalizes
this type to be bytes always. However the redefinition of the
bytes type is marked as Smell in landscape. Thus the code
should at least inform why this is done
2016-07-25 10:52:20 +02:00
Marcus Schäfer
319fb9e6e4
Adapt to common python style
Private methods should start with _f() not __f()
2016-06-15 16:27:45 +02:00
Bo Maryniuk
80900e46c5 Bring byte strings to Py2 compatibility in ISO 2016-06-08 11:46:36 +02:00
Marcus Schäfer
58861fdcc8 Update inline API documentation 2016-04-10 22:51:20 +02:00
Marcus Schäfer
7e2a332a92 Fixup docstring for kiwi/command.py 2016-04-08 16:10:15 +02:00
Marcus Schäfer
f43546fd59
Changed debug log in case of failed command
Also log the stdout data from a failed command. So far we
expected error data on stderr but there are also commands
which print error messages on stdout. It should us at least
worth a debug message with this information
2016-02-25 10:12:39 +01:00
Marcus Schäfer
f173d5a7c9 Better error response in debug output
If a Command.run fails with an error code != 0 but not data was
produced on the stderr channel, we provide this as information
to the caller
2016-02-19 11:05:04 +01:00
Marcus Schäfer
40e6308aa9 Port application from python 2.7 to 3.4
For new applications like this kiwi version and its use cases
it is better to base it on a more recent python version
2016-02-17 22:38:38 +01:00
Marcus Schäfer
77a8860d7c
landscape: fix unused variables 2015-12-05 22:17:27 +01:00
Marcus Schäfer
70a756e359
landscape: fix unused imports 2015-12-05 21:53:51 +01:00
Marcus Schäfer
5322eb9d79
landscape: fix dangerous defaults 2015-12-05 21:15:43 +01:00
Marcus Schäfer
09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00