Commit Graph

35 Commits (062ced502ca994b127beed00dcf725f3637f5fe6)

Author SHA1 Message Date
Adriaan de Groot aaeea16871 [libcalamares] Make logging more consistent
Adriaan de Groot aebe67fde7 [libcalamares] Improve debug message while looking for gettext
Adriaan de Groot 527392f0af [libcalamares] Update Copyright statement
Adriaan de Groot 093240c131 [libcalamares] Be less chatty in Python scripts
- When finding the gettext path, the debug output was very
   chatty and didn't include an indication that it was looking
   for translations.
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https
Adriaan de Groot a0a8ab0048 [libcalamares] Refactor Python target_env calls
This is why the whole refactoring started: to get the process output
and exit code in one spot so we can attach the process output
to the (Python exception) CalledProcessError in all the code
paths, not just those that are explicitly looking for output.
Adriaan de Groot 6693d91152 [libcalamares] Refactor bp:list -> QStringList
Adriaan de Groot f5aec1ad8a [libcalamares] Add output to CalledProcessError
- Refactor, internal _handle_check_target_env_call_error doesn't need
   to be in header or visible.
 - Add optional output (of the command) to the Python exception.
Adriaan de Groot 5dc70ac261 Python-i18n: apply C++-coding style
Adriaan de Groot 538c59adb9 Python-i18n: add /usr/local/share/locale to search
Adriaan de Groot 22fd428664 Python-i18: avoid duplicate path entries
Adriaan de Groot 3a1d5ed533 Python-i18n: (inefficiently) search for suitable gettext dirs
Adriaan de Groot 78b3c8ed32 Python-i18n: allow None as a gettext path (searches default)
Adriaan de Groot 74be2fd098 Python-i18n: implement gettext functions in libcalamares.utils
- remove Job.gettextPath
 - add libcalamares.utils.gettext_path()
 - add libcalamares.utils.gettext_lang()
 - modify examples in main.py
 - add some gettext debug-output from dummypython
 - correct namespace mis-labeling
 - provide two forms of GlobalStorage
   - regular use, has a JobQueue with storage
   - testing use, creates GlobalStorage separately, provide
     independent access to that for Python.
Adriaan de Groot 6370898154 Python-i18n: make it compile again
Adriaan de Groot cbfdd8690d Python-i18n: WIP, moving API to libcalamares.utils
Adriaan de Groot b922d88b0f Python-i18n: add a gettext_path for python job modules
Teo Mrnjavac 0684a761bd Copyright.
Teo Mrnjavac f8078be2fd Wrap CalamaresUtils::obscure in CalamaresPython.
Teo Mrnjavac 42e465aa10 CalamaresUtils::System is now a class.
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls.
Teo Mrnjavac 7a3ce363b3 Add option to run process jobmodules in chroot.
Teo Mrnjavac f90bf469dd Add chrootOutput/check_chroot_output to libcalamares utils API.
Teo Mrnjavac 45ac91c784 Add check_chroot_call to libcalamares Python interface.
Teo Mrnjavac e7e57689d8 Make sure chrootCall with args list actually passes the args as list.
Teo Mrnjavac 63534f7154 Add mount and chrootCall utilities to libcalamares + Python wrappers.
Teo Mrnjavac fb328494b3 Make the libcalamares Python API better for PEP8
Teo Mrnjavac 845ae05f7e Added debug( str ) to the Python API.
Teo Mrnjavac 78de11a412 Emit job progress from Python jobs.
Teo Mrnjavac 2636a1273f Add job.setprogress to Python API.
Teo Mrnjavac d9f4c74537 Add support for config map to Python job API.
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
Teo Mrnjavac 2f03dfa43b CalamaresPrivate ==> CalamaresPython
Teo Mrnjavac a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.