58 Commits (071b3a0b3e65d26d1b0e351d7875430841a9122e)

Author SHA1 Message Date
Adriaan de Groot 7cadfb8ddd [packages] Log unfamiliar package operations
- unknown operations get a warning
 - "source" will be added from netinstall shortly
5 years ago
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
6 years ago
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
7 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.
7 years ago
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.
7 years ago
Philip Müller 1bd149c14e [packages] add initial support for update target system 7 years ago
Adriaan de Groot 9fe85e592f Merge branch '3.1.x-stable' 7 years ago
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).
7 years ago
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.
7 years ago
Adriaan de Groot 060990bdd0 Python: use warning() method in modules 8 years ago
Adriaan de Groot 051edb462f [packages] Add pisi package manager (based on some guesses) 8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
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.
8 years ago
Adriaan de Groot 3e3cd08ff3 [packages] Fix previous (false vs False) 8 years ago
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.
8 years ago
Adriaan de Groot 7b145c2a36 [packages] Improve message when no packages are processed at all. 8 years ago
Adriaan de Groot 41f17892d6 [packages] Document run_operations() some more 8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
Adriaan de Groot 6c36534206 Package module: fix packages-could-be-objects code
- Check for 'list' when it's actually a 'dict' is strange.
   Reverse logic to consider 'str' a package name and everything
   else is special.
 - Refactor to handle the difference between package names and
   packages-with-script-data in one place.
 - Add code and config documentation.
 - Switch sample configurations to dummy-backend.
8 years ago
Adriaan de Groot d66434985e Package module: refactor package-manager into multiple classes 8 years ago
Alf Gaida fe14559f2f refine warn_text coding
fixed superfluous whitespace
8 years ago
Alf Gaida 122667f9a7 Fixed pep8 whining in module packages 8 years ago
Kyle Robertze 832fc9fd51 fixed two bugs in packages module
if the key "install" was used, the install would crash as the backwards
compatibility checks were incorrect. Fixed a typo in the run function so
pre- and post-install hooks now work correctly
9 years ago
Kyle Robertze 36f723e59f added missing copyright statement 9 years ago
Kyle Robertze 4d24942547 corrected packages syntax errors 9 years ago
Kyle Robertze 45facda3cb corrected packages module features so that they are up to date 9 years ago
Kyle Robertze d465617432 added support for pre- and post-install scripts 9 years ago
Teo Mrnjavac fbb77aff0c Use --non-interactive with zypper update.
CAL-455 #close Fixed in master, please test.
9 years ago
Teo Mrnjavac 8804b15b59 Make try_{install,remove} more robust. 9 years ago
Rohan Garg 4a55802b18 Allow passing a LOCALE variable in the package list
This allows for installing locale packages. This can be achieved
by adding a entry of the format packagename-${LOCALE} in the
packages configuration module.
9 years ago
Teo Mrnjavac c4df69b4a7 Allow try_install and try_remove entries in packages module. 9 years ago
Teo Mrnjavac b272917e83 Add option of updating packages db before perfoming package operations. 9 years ago
V3n3RiX ef3600891f improve portage backend, so that it removes ALL calamares deps 9 years ago
shainer 53214a15bc Add pkgman to run_operations invocation. 9 years ago
shainer 058c7d8913 packageOperations should be a map between operation type and list of packages. It does not make sense for it to be a list of dictionaries, all with the same format. Also makes conversions with QVariant harder. 9 years ago
Teo Mrnjavac 10ce42f35c Use target_env calls in Python modules. 10 years ago
Gormogon bc66502fda Some more PEP 10 years ago
skullbocks 57406f3bc9 [modules/packages] Added support for Portage and Entropy 10 years ago
rshipp f3319e1ef4 Change local_install to localInstall 11 years ago
rshipp 880c19c195 Fix incorrect if statement 11 years ago
rshipp 995341e9be Allow local installs with the packages module.
Courtesy of @Inkane. Adds the ability to use pacman -U to install
local packages.
11 years ago
Philip e5eee1e4dd [unpackfs] proper sentence 11 years ago
Philip be2353e54b [packages] add python doc strings 11 years ago
Gormogon 113d9db7cb Python Better Docstrings 11 years ago
Teo Mrnjavac abeb6d9172 Run urpme noninteractive (OpenMandriva).
Thanks Tomasz Paweł Gajc <tpgxyz@gmail.com> for the patch.
11 years ago
Gormogon 09dc6bb5d7 [PEP 8] General Style Part 2 11 years ago
Gormogon 8e1480431a [PEP 263] Corrected Encoding Headers 11 years ago