948 Commits (f8385d2cb8912f9cdcf5cdebd52a002535a7016a)

Author SHA1 Message Date
Adriaan de Groot 4d459f7fc0 [libcalamares] Move non-UI stuff from libcalamaresui
- Settings is just a settings class, no UI involved, so
   move to libcalamares where it can be used also from
   system helpers.
 - YAML utilities are useful at a lower level of the stack, too.
8 years ago
Adriaan de Groot 240efd30f1 [libcalamares] Add support for formatted, table-like output
- Use DebugRow for one-row-at-a-time output with continuations.
 - Use DebugList for one-item-per-line with continuations.
 - Use DebugMap for one-row-at-a-time output of a QVariantMap.
8 years ago
Adriaan de Groot 6bb72d173d [libcalamares] Drop generic cLog()
- Use cWarning or cError() for errors
 - Use cDebug(level) for other uses (but there aren't any)
8 years ago
Adriaan de Groot ad6227ce21 [libcalamares] Remove internal functions from the logging API 8 years ago
Adriaan de Groot cdf80615b8 [libcalamares] Rename the log file 8 years ago
Adriaan de Groot 0f289e2552 [calamares]: Improve startup logging
- Don't bother with the address of the main thread
 - Do put a marker on restart into the log file
 - Do put the Calamares version into the log file (previously, the version
   was printed through cDebug() before the log file was opened, so it was
   lost to the on-disk log).
8 years ago
Adriaan de Groot 09f30194d7 CMake: revert un-versioning of libcalamares*.so
The install-bits branch commit 83639b182b
dropped .so-versioning for libcalamares and the creation of the Python-
support symlink. This broke KDE Neon dev-unstable because the embedded
Python can no longer find libcalamares.

Installing unversioned .so's straight to LIBDIR is also not a good thing
(according to Debian), so revert to the original scheme with versioned
.so and a Python-support symlink.

Medium-term fix is to install unversioned straight into LIBDIR/calamares
and fix up the RPATH for the executable.
9 years ago
Adriaan de Groot 73a5e0bbcd [libcalamares] Fix up debugging
Using plain cLog() is weird, it doesn't attach a debugging level
so it seems like it's level 0, beyond-critical.
9 years ago
Adriaan de Groot 36ef4556b4 Merge branch 'install-bits'
FIXES #729
9 years ago
Adriaan de Groot db0c1ffd6d CMake: just install unversioned .so
- Applies to libcalamares and libcalamaresui.so, install with no
   version, just the bare .so. Since Calamares doesn't do versioning
   anyway, and its plugins should be re-compiled for any change,
   putting them in lib as unversioned .so's should make Calamares
   happy and silence lintian.
9 years ago
Adriaan de Groot a1cbb161ee [libcalamares] Make setup of log-level explicit
- Replace the implicit setting of a logging level
   (the first time logging is called) with explicit
   setupLogLevel().
9 years ago
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
9 years ago
Adriaan de Groot dbbec4f76d [libcalamares] Use cDebug, polish messages 9 years ago
Adriaan de Groot d62c7b93c6 [libcalamares] Polish weird namespace use 9 years ago
Adriaan de Groot cf02f7aab5 [libcalamares] Avoid nullptr crashes
- The Python testmodule script can end up calling in to System
   methods (via System::instance()). This is unusual, and the
   System instance has not been created at that point.
   Now, create an instance and warn about it.
9 years ago
Adriaan de Groot 83639b182b CMake: try installing outside of regular lib/
- Install unversioned libraries
 - Install to lib/calamares instead of directly to lib/
9 years ago
Adriaan de Groot df0d9dcb88 [libcalamares] Provide convenience functions for warning and error 9 years ago
Adriaan de Groot 79d81700b3 [libcalamares] Use -D for just debug-level setting
- Original flag -d sets debugging but also changes behavior
 - New -D just sets debugging
 - Simplify QStringList (use C++ 11)
9 years ago
Adriaan de Groot ae5511c2f3 [libcalamares] Rationalize logging
- Move logging-levels to an enum
 - (re-)Order logging-levels so that the normal debug statement is
   not the most-important (lowest level).
 - Drop using namespace std;
9 years ago
Adriaan de Groot 874514a4e4 i18n: drop orphaned #undefs (thanks Kevin Kofler) 9 years ago
Adriaan de Groot d27675d660 i18n: drop superfluous QObject* parent
These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
9 years ago
Adriaan de Groot c71385e93f i18n: fix broken translation in CommandList 9 years ago
Adriaan de Groot f954496acf i18n: avoid translation tricks, use QCoreApplication::translate
Instead of using tr and some macro hacks to get lupdate to
recognize the translation, instead use QCoreApplication::translate()
which takes its own context for translation.
9 years ago
Adriaan de Groot aed904e3b4 Merge branch 'i897-timeout'
FIXES #897
9 years ago
Adriaan de Groot 2da430fa36 [libcalamares] Allow CommandLine to have unset timeout
- Introduce enum for the appropriate constant
 - If the timeout isn't set, then defer to the timeout set
   on the commandlist when running the commands.
9 years ago
Adriaan de Groot c641f5dec6 [libcalamares] Implement object-style command line
- handle command: and timeout: entries
 - test for setting the values
9 years ago
Adriaan de Groot fe2be46d3f [libcalamares] Extend command-list with timeouts
- Replace plain StringList with a list of <String, timeout> pairs,
   and run that instead. All code paths still use the default 10sec
   timeout and there's no way to change that.
9 years ago
Adriaan de Groot 778feb50e8 [libcalamares] Additional convenience for doubles 9 years ago
Adriaan de Groot 54a9bbb949 [libcalamares] Don't eat output on timeout.
- Copy stdout from timed-out process into the output variable,
   instead of just dumping it into the log file. This will
   improve the user experience, too, because they will get some
   feedback / explanation of what the process has done.
9 years ago
Adriaan de Groot 26dfd56f6d [libcalamares] Additional convenience function extracting int 9 years ago
Adriaan de Groot b828580464 Merge remote-tracking branch 'origin/simplify-plugin' 9 years ago
Adriaan de Groot 9a9c6da6db i18n: try to trick Transifex into recognizing these strings 9 years ago
Adriaan de Groot 97fb83c743 [libcalamares] Change debug logging of how job name is derived 9 years ago
Adriaan de Groot abc6914528 [libcalamares] Enforce singleton-ness of CalamaresPython::Helper
- unset instance pointer on destruction
 - make constructor private, and the instance accessor
   should create an instance if there isn't one.
9 years ago
Adriaan de Groot 86b899566e [libcalamares] Silence compiler warnings about PluginFactories
- d_ptr shadows QObject d_ptr, which clang complains about
 - rename, and don't use Q_D and similar because it messes with internals.
9 years ago
Adriaan de Groot 510af704d8 [libcalamares] Improve documentation
- reference to _WITH_JSON is bogus copy-replace from other code
 - fix style of sample code.
9 years ago
Adriaan de Groot 0020fd885c [libcalamares] Remove unused extern declaration 9 years ago
Adriaan de Groot a2bdc12f25 [libcalamares] Drop unused plugin defines
- Remove some superfluous intermediate defines
 - baseFactory was not used (always Calamares::PluginFactory)
 - Move DECLARATION and DEFINITIONS apart
 - CALAMARES_PLUGIN_FACTORY_DEFINITION was redefined (identically)
 - CALAMARES_PLUGIN_FACTORY_DECLARATION was redefined (identically)
 - __VA_ARGS__ was constant
9 years ago
Adriaan de Groot f01c7cda6b [libcalamares] Fix debug output classname 9 years ago
Adriaan de Groot 913690650f [libcalamares] Move CommandList into libcalamares
- Move CommandList so it can be used from more modules than
   just ShellProcess
 - Allow a CommandList to run itself. This centralizes
   code for executing one or more commands and simplifies
   the ShellProcess module.

Various small cleanups:
 - mention instance id in log message
 - code formatting / style
9 years ago
Adriaan de Groot 60f4dd7b3b [libcalamares] Improve explanation of failed processes. 9 years ago
Adriaan de Groot 4ff1a0d5ea [libcalamares] another convenience for running commands
Back targetEnvCommand() with a more general runCommand()
that takes an argument selecting the location to run
the command in. This allows us also to use the same
API for running processes in the host during install,
as we do for running them in the target system.

One reason for this change is wanting to run (user-specified)
commands and independently from the global dontChroot setting,
run those commands in the live system or the target.

This changes the ABI of the DLL, since targetEnvCommand()
is no longer exported. Plugins will need to be recompiled.

 - refactor targetEnvCommand() into more general runCommand().
 - While here, allow host system commands to run even if
   there is no global storage.
 - provide convenience accessors for ProcessResult members
 - Move explanation of process errors out of ProcessJob
   - Move from ProcessJob to ProcessResult, so it can be
     reused outside of ProcessJob (e.g. from ShellProcessJob).
   - Add some convenience functions, too.
9 years ago
Adriaan de Groot f8a53f9646 [libcalamares] Refactor explanation of process-job errors 9 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 9 years ago
Adriaan de Groot 8a053f3c9b [libcalamares] Allow retrieving chroot mode from system (as well as settings) 9 years ago
Adriaan de Groot 298ff0cbeb Merge branch '3.1.x-stable' 9 years ago
Adriaan de Groot 517dbfab06 [libcalamares] The script namespace is actually a dict
Use dict methods, in particular d.get(k, v), to retrieve
the pretty_name() function (or None if it isn't there).
Using getattr() on a dict will not return values in the
dict.
9 years ago
Adriaan de Groot 0d413ba750 Merge branch '3.1.x-stable' 9 years ago
Adriaan de Groot 12369abaa4 [libcalamares] Refactor to reduce compiler warnings 9 years ago
Adriaan de Groot c284304872 [libcalamares] Adjust copyright lines 9 years ago
Adriaan de Groot cc195eb3d4 [libcalamares] Improve reporting of CalledProcessError
For called processes, replace the not-very-useful type message
with the command-explanation, and replace the value (previously
command-explanation) by the stderr of the failed command.

FIXES #865
9 years ago
Adriaan de Groot 9df796a3fd [libcalamares] Log earlier, warnings-- 9 years ago
Adriaan de Groot 1e27c6438a [libcalamares] Special-case CalledProcessError 9 years ago
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.
9 years ago
Adriaan de Groot 6693d91152 [libcalamares] Refactor bp:list -> QStringList 9 years ago
Adriaan de Groot 9d31380980 [libcalamares] Refactor target-environment calls
- Add a more general targetEnvCommand() that returns both
   error code and process output.
 - Change existing targetEnvCall() and targetEnvOutput()
   to use general form while discarding some data.
9 years ago
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.
9 years ago
Adriaan de Groot 1f3f6111f7 [libcalamares] Log output from failed commands 9 years ago
Adriaan de Groot b4d4351825 [libcalamares] Better Python traceback handling:
- log the whole error message as plain text
 - convert to HTML only for the ui
9 years ago
Adriaan de Groot 188050a77c Merge branch 'master' into usertracking 9 years ago
Adriaan de Groot e8e284f724 Merge remote-tracking branch 'origin/kcrash' 9 years ago
Adriaan de Groot 7a7e2b16cb [libcalamares] Some extra system-information functions 9 years ago
Adriaan de Groot e83b4d33f8 [libcalamares] Another convenience config-extraction function 9 years ago
Adriaan de Groot f3eb557fdb [libcalamares] Provide some convenience functions for extracting configuration data 9 years ago
Adriaan de Groot 2d31e987c0 [libcalamaresui] Unrelated typedef for JobList 9 years ago
Adriaan de Groot 33f78b375d Merge branch 'master' into kcrash 9 years ago
Adriaan de Groot dcc66c2793 Clang: for gcc, don't produce empty COMPILE_FLAGS 9 years ago
Adriaan de Groot 6924bd7d23 Clang: produce fewer warnings (all caused by boost headers) 9 years ago
Adriaan de Groot 7f00073e7f Clang: warnings-- 9 years ago
Adriaan de Groot a4a05acc61 Remove more crashreporter references 9 years ago
Adriaan de Groot 40c49bd50d Clang: be more explicit about marking third-party code.
- This is only a partial solution to warnings caused by third-party
   code, since #including the headers from other sources won't apply
   the warning-suppressions.
 - Flags are not applied when building the source as part of a larger
   target, but are on re-building just one object (it seems -- CMake
   issue to track down).
9 years ago
Adriaan de Groot 34761c4214 Clang: reduce 0-as-nullptr warnings 9 years ago
Adriaan de Groot 337903db09 Clang: reduce warnings about overriden destructors 9 years ago
Adriaan de Groot 9693d7a5bd Memory: clean up interface used to get memory (RAM) size 9 years ago
Adriaan de Groot 0c129f2460 Reduce third-part warnings a better way.
Thanks to Kevin Kofler for pointing out what I'd forgotten about
source-file flags. While at it, introduce a generic mechanism for
suppressing warnings in third-party code.

Mostly reverts 4930484931
9 years ago
Adriaan de Groot 13807ceabf Licensing: add self
- to all the files I've touched recently
 - to (very incomplete) AUTHORS list

Licensing: add license info to top-level CMakeLists.txt
9 years ago
Adriaan de Groot 6d880b5631 Replace memory-size detection.
- drop use of dmidecode to determine exact physical memory size
 - use sysinfo() to find memory size (assumes linux 2.3.48 or later)
9 years ago
Adriaan de Groot ddb6455365 Revert be2338ff0 (intended just to reduce warnings)
- keep the calamaresstyle formatting changes,
 - drop shadowing and nullptr changes.

FIXES #805
9 years ago
Adriaan de Groot 4930484931 CMake: massage build of libcalamares
- Build also two OBJECT libraries,
 - Allow changing Clang warnings for third-party code.
9 years ago
Adriaan de Groot eede92646d CMake: shuffle includes, drop useless (empty) QT_INCLUDE_DIR 9 years ago
Adriaan de Groot a266ecb133 CMake: simplify definitions, distinguish kinds of sources 9 years ago
Adriaan de Groot 03d9dbe099 Clean up CMakeLists, linking 9 years ago
Adriaan de Groot be2338ff08 Clang: reduce warnings 9 years ago
Adriaan de Groot 297e97da19 Clang: tidy up warnings in logger 9 years ago
Adriaan de Groot 9116718448 Clang: warnings-reduction 9 years ago
Adriaan de Groot a06911e9aa Clang: refactor units-converters, reduce warnings 9 years ago
Adriaan de Groot 106f18e074 Log process output of failed commands
FIXES #612
9 years ago
Adriaan de Groot 2c81fceacb Python: KeyError because pretty_name may not exist 9 years ago
Adriaan de Groot 5dc70ac261 Python-i18n: apply C++-coding style 9 years ago
Adriaan de Groot 538c59adb9 Python-i18n: add /usr/local/share/locale to search 9 years ago
Adriaan de Groot d6d5f54d00 Python-i18n: clarify debugging 9 years ago
Adriaan de Groot 22fd428664 Python-i18: avoid duplicate path entries 9 years ago
Adriaan de Groot 3a1d5ed533 Python-i18n: (inefficiently) search for suitable gettext dirs 9 years ago
Adriaan de Groot 78b3c8ed32 Python-i18n: allow None as a gettext path (searches default) 9 years ago
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.
9 years ago
Adriaan de Groot d4c714c400 Python: fix up testing script
- Didn't run at all (at least since v3.1) because of mismatch between
  GlobalStorage constructor arguments and use; special-case None
  in the C++ code to allocate a new GlobalStorage object.
9 years ago
Adriaan de Groot 6370898154 Python-i18n: make it compile again 9 years ago
Adriaan de Groot cbfdd8690d Python-i18n: WIP, moving API to libcalamares.utils 9 years ago
Adriaan de Groot b922d88b0f Python-i18n: add a gettext_path for python job modules 9 years ago
Adriaan de Groot 34b96148ae Python: at beginning of job, if pretty status has changed, emit progress to update it in the UI. 9 years ago
Adriaan de Groot 11e5a6cbe0 Python: trim description to the first line of run.__doc__ 9 years ago
Adriaan de Groot a72cc0eeb4 Python: use the module run().__doc__ as a pretty description. 9 years ago
Adriaan de Groot f12ae5db3b Python: get docstring from run() method 9 years ago
Adriaan de Groot 75b5303b49 i18n: stop trying to install Qt translations 9 years ago
Adriaan de Groot 5cd328dad3 Clang: if we're going to crash on purpose, crash the C++ way 9 years ago
Adriaan de Groot 0d884869e5 Clang: reduce warnings about code-documentation 9 years ago
Adriaan de Groot f2d2218070 Clang: fix warning about implict copy-ctor with explicit move-ctor 9 years ago
Adriaan de Groot 8ea14d7957 Release: add copyright to files I've touched 9 years ago
Adriaan de Groot 2148538fac Clang: reduce warnings 9 years ago
Adriaan de Groot d29acf4a06 Logging: add a global storage dump method 9 years ago
Teo Mrnjavac 6c7cdb5f50 Documentation++ 10 years ago
Teo Mrnjavac b1c67f429f Update headers. 10 years ago
Teo Mrnjavac 99ca3d768d Expose translator locale name. 10 years ago
Teo Mrnjavac 3170067089 Make JobResult inheritable and remove obsolete Status enum. 10 years ago
Teo Mrnjavac 0f734c8c5c Make sure to only call Py_Initialize if Python is not initialized. 10 years ago
Teo Mrnjavac 2c3b56c803 Link against PythonQt; new PythonQtViewModule stub. 10 years ago
Teo Mrnjavac ada620effc Find PythonQt. 10 years ago
Kevin Kofler 00d9f211f5 Add support for C++/Qt batch job plugins
These job plugins work similarly to view modules, with the following
differences:

* These jobs need to link only libcalamares, not libcalamaresui. For
  this reason, PluginFactory was moved from libcalamaresui to
  libcalamares. (It depends only on QtCore.)

* Instead of deriving from ViewModule, derive from CppJob (which is a
  subclass of Job).

* Like process and Python jobs, a job plugin is a single job, whereas a
  ViewModule can generate a whole list of jobs.

The CppJob and CppJobModule classes are new. In Module::fromDescriptor,
the combination type=job, intf=qtplugin is now supported and mapped to
CppJobModule.
10 years ago
Jonathan Carter c83ca9af44 Fix spelling mistake in kdsingleapplicationguard.cpp (#257)
s/emty/empty/g.
10 years ago
Andrius Štikonas 9f0ca042fe Port away from most cases of Q_FOREACH to C++11 ranged for loop.
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
10 years ago
Teo Mrnjavac 0684a761bd Copyright. 10 years ago
Teo Mrnjavac d99d7bfdff Expose CalamaresUtils::obscure as libcalamares.utils.obscure. 10 years ago
Teo Mrnjavac f8078be2fd Wrap CalamaresUtils::obscure in CalamaresPython. 10 years ago
shainer 2349f7125e Add conversion utilities from QHash to py dict. When translating from pydict, however, translate into a QMap as before to keep current behaviour. 10 years ago
Teo Mrnjavac 9fb9aaf6e4 Install CrashReporter handler. 11 years ago
Teo Mrnjavac fe1e1cb3c0 Export WITH_KCRASH in CalamaresConfig.h.in. 11 years ago
Teo Mrnjavac 576fdcc7a0 Print log file path. 11 years ago
Teo Mrnjavac e59418e880 Add crash utility to CalamaresUtils. 11 years ago
Teo Mrnjavac baa3553db5 Add CalamaresUtils::obscure. 11 years ago
Teo Mrnjavac 834299f785 There are no Phases any more, just a ModuleAction for a module. 11 years ago
Teo Mrnjavac 9cb4e60b31 Namespace fixage. 11 years ago
Teo Mrnjavac 1534b0a27c Try to fix dontChroot command execution. 11 years ago
Teo Mrnjavac a4ea7e65a2 Try running no-chroot commands in env rather than sh -c. 11 years ago
Rohan Garg ca393d0a44 Set the default rootMountPoint when not chroot'ing 11 years ago
Teo Mrnjavac 7212aaec74 Fix the last fix. 11 years ago
Teo Mrnjavac d8818e0280 Fix non-chroot target env call. 11 years ago
Teo Mrnjavac 42e465aa10 CalamaresUtils::System is now a class. 11 years ago
Teo Mrnjavac 0803d86c40 Don't duplicate code. 11 years ago
Teo Mrnjavac 2e3751ffa7 If dont-chroot is set, don't chroot target env calls. 11 years ago
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls. 11 years ago
Teo Mrnjavac 326671a3d6 Remove dead (unreachable) code. 11 years ago
Teo Mrnjavac b9dbf668f3 Initialize previously uninitialized scalar. 11 years ago
Teo Mrnjavac 30a840ceb0 Fix issue with changed() never being emitted on remove in GS. 11 years ago
Teo Mrnjavac eae237211f Add prettyStatusMessage to {Python,Process}Job. 11 years ago
Teo Mrnjavac b0d52fb928 Use it in JobQueue. 11 years ago
Teo Mrnjavac 18a9e0db48 Add optional prettyStatusMessage to Job. 11 years ago
Teo Mrnjavac 659a388688 Improve job status reporting. 11 years ago
Teo Mrnjavac 5e2f6ff2b8 Detect physical memory, with dmidecode and meminfo as backup. 11 years ago
Teo Mrnjavac 09ae0bcbd6 Add branding translations support to CalamaresUtils::installTranslator. 11 years ago
Teo Mrnjavac 8a02522d60 Add CALAMARES_RETRANSLATE_WIDGET 11 years ago
Teo Mrnjavac d45d436161 Add optional prettyDescription to Job. 11 years ago
Teo Mrnjavac 8b98b1cc24 Do not filter out LanguageChange events when in a RETRANSLATE functor. 12 years ago
Teo Mrnjavac 52528f650c JobQueue emits queueChanged. 12 years ago
Teo Mrnjavac edb21e05af New GlobalStoragePythonWrapper is passed to the Python API.
This allows us to make GlobalStorage a QObject, with disabled copy
constructor. And thanks to this change, GlobalStorage now emits
changed() every time an insert or remove is performed.
12 years ago
Teo Mrnjavac d1c4976ee6 Copyright. 12 years ago
Teo Mrnjavac d8ca5eee5b Friend DebugWindow to GlobalStorage for future use. 12 years ago
Gormogon e2d05cb9f2 Align Pointers 12 years ago
Teo Mrnjavac b8b41bdfdd Fix execution environment and error reporting in ProcessJob. 12 years ago
Teo Mrnjavac 9622888d1d Load QML modules in a central place + dummy QML slideshow. 12 years ago
Kevin Kofler 00604a8bca PythonHelper: Add support for bool.
Convert Python bool type from/to C++/QVariant bool (QVariant::Bool) in
PythonHelper::variantToPyObject and PythonHelper::variantFromPyObject.

This fixes the "override" option and any booleans in the "defaults" list
in grubcfg.conf.
12 years ago
Kevin Kofler 7478c1266b Point the lib/calamares/libcalamares.so symlink to the versioned so.
Point the lib/calamares/libcalamares.so symlink for the Python modules
directly to the versioned lib/libcalamares.so.VERSION library rather
than to the lib/libcalamares.so symlink. This allows distributions to
install the lib/libcalamares.so symlink to a development package and
only ship lib/libcalamares.so.VERSION and lib/calamares/libcalamares.so
in the runtime package. It is also marginally faster (because only one
level of symlinks has to be resolved instead of two).

(I know this works because I have been manually fixing up this symlink
in the Fedora specfile so far.)
12 years ago
Teo Mrnjavac 8575240b95 Capture by-val in Retranslator macro. 12 years ago
Teo Mrnjavac e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 12 years ago
Teo Mrnjavac 945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 12 years ago
Teo Mrnjavac 08b90e975b Add retranslator class to CalamaresUtils. 12 years ago
Teo Mrnjavac 8b343ace4a QTranslator switching in CalamaresUtils. 12 years ago
Teo Mrnjavac 8026a287d3 Shut up Qt lupdate warnings. 12 years ago
Teo Mrnjavac 633c8512c2 Try to make compile on Qt 5.4 12 years ago
Teo Mrnjavac a97297a3fe Attempt to fix #125 12 years ago
Teo Mrnjavac d97bb47f09 Add proper QResrouce system to libcalamaresui, finish up prepare checks
This also adds ImageRegistry, a SVG cache, a bunch of utility functions
for shared pixmaps in CalamaresUtilsGui and renames several qrc files
in viewmodules.
12 years ago
Pier Luigi Fiorini f0921a41b2 Try to find settings.conf from SYSCONFDIR
Honor SYSCONFDIR as specified by CMake arguments instead of
using a hard-coded path.

Since GNUInstallDirs set CMAKE_INSTALL_FULL_SYSCONFDIR to
CMAKE_INSTALL_PREFIX/etc we need to change the default ourselves.
12 years ago
Teo Mrnjavac ec7edc4b83 Improve diacritics transliteration. 12 years ago
Teo Mrnjavac 6295f48ab7 Add removeDiacritics function to CalamaresUtils. 12 years ago
Teo Mrnjavac 7a3ce363b3 Add option to run process jobmodules in chroot. 12 years ago
Teo Mrnjavac eb6b8ac613 Add check_chroot_output to Python interface. 12 years ago
Teo Mrnjavac f90bf469dd Add chrootOutput/check_chroot_output to libcalamares utils API. 12 years ago
Aurélien Gâteau 1c9265cd21 Merge branch 'wip/resize-partition' 12 years ago
Teo Mrnjavac 5400afa540 Fix settings.conf loading. 12 years ago
Aurélien Gâteau 249a28910a Make it possible to update message and details fields of a JobResult 12 years ago
Teo Mrnjavac 84ec430729 Add some Python API docs. 12 years ago
Teo Mrnjavac 01efeda801 Utils, not util. 12 years ago
Teo Mrnjavac c964093d7c Make libcalamares a proper package and utils a proper submodule. 12 years ago
Teo Mrnjavac c64e229142 By default, chrootCall should never time out. 12 years ago
Teo Mrnjavac 45ac91c784 Add check_chroot_call to libcalamares Python interface. 12 years ago
Aurélien Gâteau 26e5500e33 chrootCall: Log messages on failure, as well as command outputs 12 years ago
Aurélien Gâteau 6376e1daef Start the process before calling waitForStarted() 12 years ago
Aurélien Gâteau 70a13fc588 Make logging more useful
- Do not log progress percent but log job names.
- Log install failures.
12 years ago
Aurélien Gâteau 45101d15b0 Store log in ~/.cache by default 12 years ago
Aurélien Gâteau 1b695b7355 Fix crash when logging at exit time 12 years ago
Aurélien Gâteau 90670f8b46 Improve formatting of error messages 12 years ago
Teo Mrnjavac e7e57689d8 Make sure chrootCall with args list actually passes the args as list. 12 years ago
Teo Mrnjavac 63534f7154 Add mount and chrootCall utilities to libcalamares + Python wrappers. 12 years ago
Teo Mrnjavac fb328494b3 Make the libcalamares Python API better for PEP8 12 years ago
Teo Mrnjavac 845ae05f7e Added debug( str ) to the Python API. 12 years ago
Aurélien Gâteau d30b6300ab Unbreak locating of config file when run without --config 12 years ago
Aurélien Gâteau 289704ab90 Make it possible to override the config dir from the command line 12 years ago
Teo Mrnjavac 87ee2b8b8c Improve error reporting for Python jobs. 12 years ago
Teo Mrnjavac beafcd9cc4 Consistency: calamares_main ==> run; global_storage => globalStorage 12 years ago
Teo Mrnjavac 2a231b3532 Try to avoid passing GlobalStorage to Python by value. 12 years ago
Teo Mrnjavac da83ecfb13 libcalamares.job is of type libcalamares.Job 12 years ago
Teo Mrnjavac 78de11a412 Emit job progress from Python jobs. 12 years ago
Aurélien Gâteau 89fd6a950b Add support for per-job progress 12 years ago
Aurélien Gâteau e9da5cb6cb Change signature of JobQueue::progress, add finished() signal
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
12 years ago
Teo Mrnjavac 2636a1273f Add job.setprogress to Python API. 12 years ago
Teo Mrnjavac c6c2c67560 Rewrite Python error handling to show meaningful messages. 12 years ago
Teo Mrnjavac 0753e6ccde New GlobalStorage map. With Python API support. 12 years ago
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.
12 years ago
Teo Mrnjavac 2f03dfa43b CalamaresPrivate ==> CalamaresPython 12 years ago
Aurélien Gâteau 43f29b8058 Start working on tests for partition jobs 12 years ago
Teo Mrnjavac e33e9de6f6 Symlink lib/calamares/libcalamares.so to lib/libcalamares.so for Python. 12 years ago
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.
12 years ago
Teo Mrnjavac b924aeef2b Add optional Python jobs support to libcalamares. 12 years ago
Teo Mrnjavac 754ef7dbbc Fix prettyName. 12 years ago
Aurélien Gâteau 7096213206 Move partitionmanager code to src/modules/partition 12 years ago
Teo Mrnjavac 51e5976a99 Better error message. 12 years ago
Teo Mrnjavac 2e47c248ac Load modules by phase, in preparation for actually using new settings. 12 years ago
Aurélien Gâteau 22ff18f2cc Update partitionmanager submodule, fixing build without KIO 12 years ago
Aurélien Gâteau 784f07cbbc Update partitionmanager submodule: latest commits from the frameworks branch
@demm: This includes the btrfs fix
12 years ago
Aurélien Gâteau 2e3f1c655c Update partitionmanager submodule, necessary for next commit 12 years ago
Aurélien Gâteau b1ce4afc8c Update partitionmanager submodule 12 years ago
Teo Mrnjavac b3aae75bed Add working directory to ProcessJob 12 years ago
Aurélien Gâteau 165d28fc23 Abort installation when a job fails 12 years ago
Teo Mrnjavac fe7a64d5ab Add ProcessJob, a wrapper for external commands. 12 years ago
Teo Mrnjavac dbadbf69ec Const correctness. 12 years ago
Teo Mrnjavac d1151d87cf Move implementation to cpp file. 12 years ago
Aurélien Gâteau 6881fdab6e JobResult 12 years ago
Aurélien Gâteau 04743eb4be Basic JobQueue implementation 12 years ago
Aurélien Gâteau f10f2026ad Update partitionmanager submodule 12 years ago
Teo Mrnjavac 4ec72f4afb Refactored calamares_bin into calamares_bin and libcalamaresui.
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
12 years ago
Aurélien Gâteau bcfbf3eda2 Dummy implementation of JobQueue so that I can call it 12 years ago
Teo Mrnjavac f1da3373a8 Added Typedefs.h and Job/JobQueue interfaces. 12 years ago
Teo Mrnjavac afa1d9dce0 To build with partitionmanager: cmake -DWITH_PARTITIONMANAGER=1 12 years ago
Teo Mrnjavac 6388171521 Stubs for JobQueue and Job. 12 years ago
Aurélien Gâteau 02af2dccb9 Introduce libcalapm
This adds a submodule pointing to a fork of KDE Partition Manager. All
Calamares-specific changes are in the "calamares" branch of this fork.
12 years ago
Aurélien Gâteau 3cc7fe3245 Rename config.h to CalamaresConfig.h
Avoid name clashes with partitionmanager's config.h
12 years ago
Teo Mrnjavac 6324feb2f3 Probably best to not even try to mkdir /usr/lib 12 years ago
Teo Mrnjavac ef48f36445 Add modules path in build dir if --debug.
Also fix config.h location.
12 years ago
Teo Mrnjavac ab5c818f4f Fix -Wnarrowing warnings in KDSingleApplicationGuard 12 years ago
Teo Mrnjavac d20e3ce598 Add DLLEXPORT_PRO definitions. 12 years ago
Teo Mrnjavac 13fcf387c7 A bunch of work on loading plugins.
Also switched to C++11.
12 years ago
Aurélien Gâteau 1da7ba446d Fix link error on Qt5 libs 12 years ago
Teo Mrnjavac 05d355f21f Config files are YAML, not JSON. We depend on yaml-cpp for parsing. 12 years ago
Teo Mrnjavac 4e14ec7834 Fixed defines for Logger 12 years ago
Teo Mrnjavac 6899b1f0fa Added CMake magic for plugin infrastructure.
Added ViewManager.
Added dummy Settings class.
Added dummy plugin interface (UI plugins only).
Added dummy greeting plugin.
Added DLLEXPORT macros for UI plugin interface and plugins.
12 years ago
Teo Mrnjavac b21dc4fe4c Added Utils, Logger, Translations, QCommandLineParser, init boilerplate 12 years ago
Teo Mrnjavac 2120685822 Fix error in headers. 12 years ago
Teo Mrnjavac 27cea281bc Added KDSingleApplicationGuard boilerplate because it's a singleton.
Also DllMacro.h
12 years ago
Teo Mrnjavac b5ec7c4702 CMake skeleton. 12 years ago