3434 Commits (491202d75fff8a7ce6d9ae5ee9bedfbcf9f083a2)

Author SHA1 Message Date
Adriaan de Groot fe3a88f834 [packages] Fix cut-and-paste-o in packages try_remove
- Copied from_local from the code for install, which doesn't
   make sense and causes a NameError.

FIXES #1063
6 years ago
Adriaan de Groot 56a71c232f [locale] Use the re-factored LocaleLabel 6 years ago
Adriaan de Groot 210965aca4 [libcalamaresui] Allow always-show-country setting in locale label 6 years ago
Adriaan de Groot 8790985fca [libcalamaresui] Code-formatting, remove dead code 6 years ago
Adriaan de Groot 3dda9ab860 [libcalamaresui] LocaleLabel doesn't need to inherit QObject
- Use static QObject::tr instead.
6 years ago
Adriaan de Groot 1f4ac45bb5 [libcalamaresui] Cleanup locale-labeling code
- Support translations of the "language (country)" format instead
   of forcing English parenthesis.
6 years ago
Adriaan de Groot 084f4d2445 [libcalamaresui] Refactor: move LocaleLabel to UI library
- This is prep-work for making locale labels consistent everywhere.
 - While here, improve code documentation.
6 years ago
Harald Sitter 311af6de5d [locale] prefer native language and country names when available
This basically means we talk about localization in the respective
localized variant. e.g. "German (Germany)" ➡ "Deutsch (Deutschland)".

If geoip lookup failed or isn't configured for whatever reason it's a
stretch to expect the user to know english enough to find their own
language. Preferring the localized strings resolves this issue.

Additionally this happens to bypass #712 respectively
https://bugreports.qt.io/browse/QTBUG-34287
as the native names are properly spelled. So, as long as Qt has localized
names the names will also be properly spelled.
6 years ago
Calamares CI bf976b3de0 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Calamares CI 6ac872e724 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot c5d707399d Merge branch 'fix-swap-ui' 6 years ago
Adriaan de Groot 14c72824f0 [partition] Be chatty when deciding a partition isn't resizable 6 years ago
Adriaan de Groot b798c27bc4 [partition] Be more verbose while looking for fstab entries 6 years ago
Adriaan de Groot 1f2d547d5b Merge remote-tracking branch 'origin/partitioning-fixes' 6 years ago
Adriaan de Groot e074959ede Merge remote-tracking branch 'origin/package-scripts'
FIXES #1057
6 years ago
Adriaan de Groot 1fb1189f74 Merge remote-tracking branch 'origin/mount-conf-flexible' 6 years ago
Adriaan de Groot e4d67b5572 [mount] Handle missing configuration keys gracefully
- If a key is missing from mount.conf, don't raise KeyError
 - If both keys are missing, suggest that mount.conf might
   be missing instead (a consequence of INSTALL_CONFIG=OFF, for
   instance).
 - Simplify code a bit.
 - Don't bother returning None explicitly.
6 years ago
Adriaan de Groot 0a73d57808 [packages] Add support for pre- and post- scripts everywhere
- for remove and localInstall, add support for pre- and post-
   scripts like there already was for install.

This feels like there's code duplication going on, but I haven't
thought of an elegant way to distinguish the available operations
so that I can pass around functions instead.
6 years ago
Adriaan de Groot 34255b4cf5 [packages] Document *localInstall* operation. 6 years ago
Adriaan de Groot 05588a1ffd [packages] Improvide conf documentation
- about LOCALE packages
 - about pre- and post-scripts

CC: #1057
6 years ago
Calamares CI 94dcf56282 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot 38d58fb6ed [partition] Check for suitable FS before passing -o noload
- The noload option prevents journal re-play (so it's an extra-
   strong read-only) but is only applicable to ext3 and ext4.
   Check the FS type before mounting; other FS types don't
   accept -o noload and will fail to mount.
6 years ago
Adriaan de Groot e0ce500f36 [partition] Improve debug-output after os-prober 6 years ago
Adriaan de Groot c522004575 [partition] Mount fs read-only when searching for fstab
Submitted by aliveafter1000

FIXES: #1044
CLOSES: #1050
6 years ago
Adriaan de Groot 9459ef7d93 [partition] Set FlagBoot for the root partition
- This only applies to legacy (non-EFI) BIOS systems, and
   adds the FlagBoot to whatever is already set for the root
   filesystem, and only when autopartitioning the device.

Submitted by aliveafter1000.

FIXES: #1046
CLOSES: #1049
6 years ago
Adriaan de Groot a1143e8fef [partition] Document flags parameter to createPartition() 6 years ago
Adriaan de Groot 8144295e98 [partition] Make new partition flags explicit
Suggested by aliveafter1000: having a default value, and then
filling in the default in one place it is used and not others,
is weird. Instead of dropping the one use, remove the default
value: partition flags are important enough to be explicit.
6 years ago
Adriaan de Groot 1def06cfd3 [calamares] Reduce warnings about signedness 6 years ago
Adriaan de Groot 97c9e5bdcd [partition] Debug-log available file-system types 6 years ago
Adriaan de Groot 463b1441a5 [partition] Be more verbose about default file-system settings
- Log the type that is configured
 - Document that this is a delicate setting, case-sensitive and
   dependent on KPMCore.
6 years ago
Adriaan de Groot 6de55e6951 [partition] Construct, then winnow, the fstab entries 6 years ago
Adriaan de Groot ebbc1a1bcb [partition] "constructor-like" needs to be static 6 years ago
Adriaan de Groot 516ae494bf [partition] Complain if unmount fails
- If unmount fails, then warn and don't autoremove
6 years ago
Adriaan de Groot bd1b482242 [partition] Don't autoremove the tempdir
- Dangerout since we're mounting things inside that tempdir,
   and then doing a "weak" unmount
6 years ago
Adriaan de Groot f1c1d07dca [partition] Add convenience methods to FstabEntry
- Add something like a constructor
 - Add validity checking
6 years ago
Adriaan de Groot 417eeedd9f [partition] Calamares is spaced-out enough without extra's 6 years ago
Adriaan de Groot c7645af358 [partition] Translate swap-choice-strings to enum
- Handle legacy and modern config, mixed-configs,
 - Translate strings to enum values,
 - Default and warn as appropriate.
 - Doesn't **do** anything with the config, though.
6 years ago
Adriaan de Groot f7cc571635 Merge branch 'fix-swap-ui' of github.com:calamares/calamares into fix-swap-ui 6 years ago
Adriaan de Groot 3d543e9063 [partition] Refactor to use current config-reading methods 6 years ago
Adriaan de Groot caa4b8ab53 [partition] Document intention of new-style swap config 6 years ago
Adriaan de Groot 2a61116b3c [partition] Disable swap choice for replace & alongside 6 years ago
Adriaan de Groot 779542a5d1 Merge branch 'master' into fix-swap-ui 6 years ago
Adriaan de Groot 3b8d2835e0 [calamares] Use XDG_{DATA,CONFIG}_DIRS as appropriate
- Use DATA for the qml and branding directories (looks for qml/
   and branding/<name>/ in those directories).
 - Use CONFIG for the global settings and module settings (looks
   for settings.conf and module/<name>/ in those directories).

FIXES #941
6 years ago
Adriaan de Groot c489320af5 [calamares] Add option to obey XDG dirs
- Prep-work for #941
 - This does nothing, yet, just sets the stage for using
   XDG_CONFIG_DIRS and XDG_DATA_DIRS as well as the regular
   directories.
6 years ago
Adriaan de Groot 4a2ca8bb77 [libcalamares] Fix compilation of tests
- QCOMPARE is picky with types, enum vs unsigned int, so just
   hit it with a hammer.
6 years ago
Adriaan de Groot fc99824c8d [fsresizer] Fix string error, thanks Lithuanian translators 6 years ago
Adriaan de Groot bb586de056 [partition] Remove some slowdown methods when debugging is off
- Running lsblk and mount for debugging purposes can be
   skipped when the debugging is going to be suppressed anyway.
   This will speed things up just a little for regular users.
6 years ago
Adriaan de Groot 74ab06e20a [partition] Drop redundant logging 6 years ago
Adriaan de Groot 02a6b7dd12 [partition] Log the newly-created partition table
- Log individual partitions instead of printing QObject(<ptr>)
6 years ago
Adriaan de Groot 4757496c3d [partition] Improve partition-UUID logging. 6 years ago