4 Commits

Author SHA1 Message Date
Ikey Doherty 62da42dac6 swupd: Ensure we use sudo only when necessary
It may happen that python-swupd is used in an EUID 0 root process, as such
running sudo is not appropriate. With this change, we introduce a command
builder that will insert sudo as appropriate, depending on the current
EUID.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-07-27 17:17:32 +01:00
Ikey Doherty 202fa4a020 swupd: Add missing license header to the Pythonic code
This will ensure that everyone is aware of the project licensing conditions
immediately without having to dig around for the LICENSE file

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-07-27 17:10:23 +01:00
Ikey Doherty 4a8316bd99 Ensure the codebase is now PEP8 compliant
This change also fixed a broken shebang

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-07-27 17:06:40 +01:00
Guillermo Adrian Ponce 627f561a76 Initial commit
Signed-off-by: Guillermo Adrian Ponce <guillermo.a.ponce.castaneda@intel.com>
2016-07-27 10:56:56 -05:00