Adriaan de Groot
8a1e5d35fa
[packages] Move pacman-options into their own key with subkeys
2021-11-29 11:59:09 +01:00
dalto
bd07db544f
[packages] Update doumentation for run_pacman() to be more complete
2021-11-28 15:56:16 -06:00
dalto
bb24ee1b3b
[packages] Fix location of call to reset_progress()
2021-11-26 10:56:32 -06:00
dalto
c80b4ff4c2
[packages] Make callback logic more sensible
2021-11-26 08:30:18 -06:00
dalto
e1e29780f2
[packages] Change callbacks
2021-11-25 15:55:22 -06:00
dalto
fa10bb8dd3
[packages] Add support for more pacman options
2021-11-25 11:52:41 -06:00
Adriaan de Groot
2a86e86817
[packages] Make package-installation messages slightly less scary.
...
From a test with XeroLinux, at some point it says 'reinstalling linux...'
which is a message from pacman about the package called 'linux'.
2021-11-09 15:25:06 +01:00
Adriaan de Groot
e4b44b5f85
[packages] Look for other progress indicators
...
- the (n/m) lines are output of specific steps, not actual package-
installation. So look for "<action> <packagename> ..." lines instead.
This means we keep some state around, and need extra machinery to
report those lines rather than the generic progress reporting
that reports on groups.
2021-11-09 14:42:12 +01:00
Adriaan de Groot
4821f450f3
[packages] Report progress by scanning pacman output
...
- during install and remove, check for (n/m) output lines which
report progress of the pacman actions and turn those into progress
reports for the *packages* module.
2021-11-09 13:07:29 +01:00
Adriaan de Groot
fc2286117d
[packages] Move package-list-logic into PM base class
2021-07-28 13:13:39 +02:00
Adriaan de Groot
3a5334071d
[packages] Fix wording problem
2021-07-14 12:54:07 +02:00
Adriaan de Groot
aa4569b55b
[packages] Convert command-failures into readable error messages
...
If the pakcage manager fails in some way, convert to a readable
error message instead of leaking the exception to the caller
(which produces a traceback, which is harder to read and less
informative)
2021-05-24 23:07:11 +02:00
Adriaan de Groot
cd7d109114
[packages] Fix trivial indent problem
2021-04-23 23:04:51 +02:00
Jerrod Frost
4299ea1d4f
Add Luet PackageManager support
...
Sabayon is being rebuilt into MocaccinoOS with a new packagemanager.
2021-04-22 11:18:41 -05:00
Neal Gompa
d39f2b8c3e
[packages] Drop urpmi support
...
This code is essentially untested and unused, as OpenMandriva has been
using DNF for three years now.
Reference: https://www.openmandriva.org/en/news/article/switching-to-rpmv4
2021-03-11 06:32:49 -05:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00
Adriaan de Groot
863a4cc2a4
REUSE: (GPL-3.0-or-later) Python modules
2020-08-26 02:22:49 +02:00
Adriaan de Groot
41769c8794
[packages] Alphabetize package manager implementations
2020-08-19 21:12:40 +02:00
Vitor Lopes
c16866fb88
pep8 302
2020-07-05 08:37:28 +01:00
Vitor Lopes
e29462bc05
[pamac] rework db_lock
2020-07-05 08:35:52 +01:00
Vitor Lopes
976150bc1e
simplify install code
2020-06-22 00:12:02 +01:00
Vitor Lopes
ddfd120197
add missing self
2020-06-21 23:43:31 +01:00
Vitor Lopes
5bb49e252d
Update main.py
2020-06-21 18:28:17 +01:00
Vitor Lopes
75bba349be
Update main.py
2020-06-21 18:03:21 +01:00
Vitor Lopes
f8db15adc4
add pamac support
2020-06-21 17:24:29 +01:00
Pablo Ovelleiro Corral
f034b55da2
[packages] add xbps package manager
2020-06-11 11:51:15 +02:00
Adriaan de Groot
c4bfad9399
[packages] Provide status feedback
...
- The status message should be updated; the name is constant.
FIXES #1330
2020-03-09 15:41:17 -05:00
Adriaan de Groot
d3828a82fc
[packages] Make dummy backend slower
...
- insert sleeps to make it slower (easier when testing)
- improve debug logging clarity by noting where the messages
are coming from
2020-03-04 21:31:47 -05:00
Bart Ribbers
136d22188e
[packages] Add apk (Alpine Linux package manager) support
2020-02-27 12:58:53 +01:00
Adriaan de Groot
7cadfb8ddd
[packages] Log unfamiliar package operations
...
- unknown operations get a warning
- "source" will be added from netinstall shortly
2020-02-18 12:02:16 +01:00
Adriaan de Groot
36fe3ed188
[packages] Add -Su --noconfirm
...
- When updating the system (-Su) it may want to install newer
packages; it asks for confirmation before doing so.
FIXES #1154
2019-05-27 14:06:05 +02:00
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
2019-01-03 14:36:48 +01:00
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.
2018-11-27 12:52:24 +01:00
Kevin Kofler
15e9edca70
[packages]: Implement update_system for pkcon, yum, dnf
...
Also make install for yum and dnf follow the documented syntax: options
(-y) before the command (install), even though yum and dnf also accept
the other order. This also makes it consistent with remove.
2018-06-18 13:53:58 +02:00
Philip Müller
1bd149c14e
[packages] add initial support for update target system
2018-06-17 12:53:31 +02:00
Adriaan de Groot
9fe85e592f
Merge branch '3.1.x-stable'
2018-04-04 11:10:34 -04:00
Adriaan de Groot
4c04260b97
[packages] Don't change the global package list.
...
- Count only the packages that will be changed, given the current
locale settings.
- Preserve global storage unchanged (don't remove any locale-packages).
2018-04-03 08:28:29 -04:00
Adriaan de Groot
9cdb6734bf
[packages] If locale is empty, pretend it is 'en'.
...
- Otherwise packages like vi-$LOCALE will be retained in the
package list, which will cause install problems.
2018-04-03 08:02:16 -04:00
Adriaan de Groot
060990bdd0
Python: use warning() method in modules
2018-02-20 04:42:56 -05:00
Adriaan de Groot
051edb462f
[packages] Add pisi package manager (based on some guesses)
2018-02-01 09:14:54 +01:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
65a236cd60
[packages] Fix previous.
...
This, kids, is why you don't switch writing C++ and Python too often.
The C++ code isn't a syntax error in Python, although this would fail
at runtime.
2017-12-02 06:14:17 -05:00
Adriaan de Groot
3e3cd08ff3
[packages] Fix previous (false vs False)
2017-12-02 05:20:13 -05:00
Adriaan de Groot
150007c138
[packages] Feature: skip if no internet.
...
Update documentation, add a new key *skip_if_no_internet* to support
systems that **recommend** having an internet connection (but don't
require it), and which also use the packages module. This prevents
a long delay while the package manager tries to access the internet
and times out (repeatedly).
Existing configurations are unchanged.
2017-12-02 05:17:15 -05:00
Adriaan de Groot
7b145c2a36
[packages] Improve message when no packages are processed at all.
2017-12-01 16:48:02 -05:00
Adriaan de Groot
41f17892d6
[packages] Document run_operations() some more
2017-10-24 06:44:37 -04:00
Adriaan de Groot
a4f4d417a2
Packages module: improve translated progress reporting
...
- Reduce number of strings a bit
- Less confusing translation requirements (I hope)
- Report on progress between groups
2017-08-31 03:51:18 -04:00
Adriaan de Groot
a31c4b4cb3
Packages module: better progress reporting
...
- introduce multiple modes (remove, install) to
distinguish progress messages
- handle plurals via gettext
- fix PEP8 whining from previous
2017-08-30 17:37:04 -04:00
Adriaan de Groot
e1a93987d0
Packages module: add progress reporting
...
Adds i18n to the module (but these strings are not yet extracted),
and reports progress as each group of packages is installed.
FIXES #781
2017-08-30 10:09:28 -04:00
Adriaan de Groot
3799a26b3c
Package module: optimize & fix
...
- Expand example configurations
- Optimize commoon case of just listing package names
- Do locale substitution in both kinds of cases
2017-08-29 06:58:30 -04:00