summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
Commit message (Collapse)AuthorAgeFilesLines
* drakboot: support setting up uefi on aarch64Pascal Terjan2020-01-011-3/+8
| | | | | | | | Partially tested on Amazon EC2, instance still didn't boot (as it needed it to be installed in removable mode (EFI/boot/bootaa64.efi) to be found) but at least drakboot --boot worked (except for failing to enabled acpid service) and things seem to be in the expected place.
* Add extra UEFI helper functions.Martin Whitaker2018-12-171-1/+27
| | | | Needed for next commit.
* fix doble quotes in perldocThierry Vignaud2018-01-071-1/+1
|
* kill now useless is_mgalive()Thierry Vignaud2017-04-041-9/+1
|
* rely on Gtk+ for checking for Xserver (mga#19498)Thierry Vignaud2017-01-121-2/+3
| | | | | | | | | MCC also needs a separate fix for forcing using the X11 GDK backend b/c GtkPlug/Socket do not work under Wayland, thus relying on xwayland XFdrake will probably fails the same way under wayland, but anyway it's there for configuring xserver... It should probably checks for wayland before proposing to test
* (get_libdir) introduce itThierry Vignaud2016-06-241-1/+5
| | | | it'll be reused in compssUsers.pl
* perl_checker cleanupsThierry Vignaud2016-01-021-2/+2
|
* enable translators to better format remaining timeThierry Vignaud2016-01-021-1/+3
| | | | thus fixing mga#12490
* add POD doc for is_uefi() and is_mgalive()Thomas Backlund2015-01-091-2/+12
|
* export is_mgalive and is_uefiThomas Backlund2015-01-081-1/+1
|
* add is_mgalive() and is_uefi() checksThomas Backlund2015-01-081-0/+6
|
* kill $Id:$ tagsThierry Vignaud2014-06-071-1/+1
| | | | they're obsolete since switching from CVS/SVN to git...
* fix typo in commit e4a19b10331a686461cbbcaecfb1cba5c5342676Thierry Vignaud2014-06-041-1/+1
|
* simplify using member()Thierry.Vignaud2014-05-281-1/+1
|
* typo fixesThierry.Vignaud2014-05-271-4/+4
|
* partially podify commonThierry.Vignaud2014-05-241-14/+256
|
* reorder functions for next commitThierry.Vignaud2014-05-241-8/+8
|
* typo fixThierry.Vignaud2014-05-241-1/+1
|
* use Gtk3 namespace instead of Gtk2Thierry Vignaud2013-11-241-1/+1
|
* use (my|u)gtk3 instead of *tk2Thierry Vignaud2013-11-241-1/+1
|
* Drop support for running things via consolehelper.Colin Guthrie2013-09-061-10/+1
| | | | | | | consolehelper is outdated and unreliable. We now prefer polkit and just do a simple test to see if we are root and bail if not. https://wiki.mageia.org/en/Feature:SystemdTidyups#consolehelper.2Fuserhelper_vs._polkit
* (N) kill KDE like comment even if string doesn't have "\n" at endThierry Vignaud2012-10-021-1/+1
| | | | thus fixing comment in license text
* (cmp_kernel_versions) move it from any.pm to common.pm; thus preventing lazy ↵Thierry Vignaud2012-03-121-0/+12
| | | | | | | | | | | | | | | | | | | | | | loading of syscall.ph through any->detect_devices>modules>list_modules>MDK::Common>MDK::Common::System>syscall.ph This can end in crashing mgaaplet when performing live update (mga#3042) because of lazy loading of syscall (by which time perl may as well have been updated including syscall.ph which leave eg perl/5.12.x for perl/5.14.x) This also saves quite some memory for: - net_applet (5Mb aka 11%), - mgapplet (7Mb aka 14%) (as well as maybe for drakxnet but that's more transient): 21736 root 20 0 240m 44m 10m S 0 1.1 0:00.63 net_applet 21501 root 20 0 236m 39m 11m S 0 1.0 0:01.09 net_applet 23116 root 20 0 297m 50m 12m S 0 1.3 0:00.58 mgaapplet 23259 root 20 0 290m 43m 12m S 0 1.1 0:00.40 mgaapplet
* (secured_file) ensure that ~/tmp is correctly owned if createdThierry Vignaud2011-11-271-2/+11
| | | | | | | | callers should probably just use mkstemp in /tmp instead of relying on $TMPDIR || $ENV{HOME}/tmp or we should just move the choice of directoyr from callers to here, sg like: my $tmpdir = find { -d $_ } $ENV{TMPDIR}, "$ENV{HOME}/tmp", "$::prefix/tmp";
* (parse_release_file) silent perl_checkerThierry Vignaud2011-11-271-1/+1
|
* (secured_file) fix crashing on creating temp file if temp dir doesn't exist ↵Thierry Vignaud2011-11-271-0/+1
| | | | (mga#1396)
* also take mandriva-release file in account in common::release_file for ↵Michael Scherer2011-05-231-1/+1
| | | | consistency with others distributions
* - string changes: perl -pi -e 's!Can not!Cannot!'Ahmad Samir2011-04-041-1/+1
|
* - use 'cannot' instead of 'can not'Ahmad Samir2011-04-021-2/+2
| | | | | - use 'LDAP' instead of 'Ldap'
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-02-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with Mageia. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r431 | dmorgan | 2011-02-06 01:58:02 +0000 (Sun, 06 Feb 2011) | 1 line Add drakx structure on the SVN ------------------------------------------------------------------------ r432 | dmorgan | 2011-02-06 01:59:38 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned advertising ------------------------------------------------------------------------ r446 | dmorgan | 2011-02-06 22:37:08 +0000 (Sun, 06 Feb 2011) | 1 line Import Clean perl-install ------------------------------------------------------------------------ r448 | dmorgan | 2011-02-06 23:02:36 +0000 (Sun, 06 Feb 2011) | 1 line Add cleaned files ------------------------------------------------------------------------ r449 | dmorgan | 2011-02-06 23:03:52 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned kernel ------------------------------------------------------------------------ r450 | dmorgan | 2011-02-06 23:23:30 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned tools ------------------------------------------------------------------------ r451 | dmorgan | 2011-02-07 00:01:56 +0000 (Mon, 07 Feb 2011) | 1 line Import stage1 ------------------------------------------------------------------------ r473 | dmorgan | 2011-02-07 11:20:50 +0000 (Mon, 07 Feb 2011) | 1 line Import images ------------------------------------------------------------------------ r497 | ennael | 2011-02-09 21:02:06 +0000 (Wed, 09 Feb 2011) | 2 lines readd missing file ------------------------------------------------------------------------ r502 | pterjan | 2011-02-09 23:30:32 +0000 (Wed, 09 Feb 2011) | 1 line Import rescue ------------------------------------------------------------------------ r603 | ennael | 2011-02-24 13:32:54 +0000 (Thu, 24 Feb 2011) | 2 lines import cleaned rescue for Mageia ------------------------------------------------------------------------ r2061 | tv | 2011-10-20 20:32:19 +0100 (Thu, 20 Oct 2011) | 1 line import (cleaned) doc ------------------------------------------------------------------------
* create unwind_protect() and with_private_tmp_file()Pascal Rigaux2008-09-181-0/+23
| | | | | (for future use)
* - keep in $o->{previous_release} the info about upgraded /etc/release,Pascal Rigaux2008-09-011-1/+3
| | | | | | | and pass "reason" and version to urpmi.addmedia - we also parse {version} field out of /etc/release
* (is_running) make it return the actual PID of the first found process rather ↵Thierry Vignaud2008-08-071-3/+3
| | | | than a boolean
* (is_running) factorize code between mdkapplet & net_applet so that ↵Thierry Vignaud2008-08-071-1/+10
| | | | | | | | draksnapshot-applet can reuse it too note that this code need to be adapted for multiples simultaneous sessions (being the same user or different users)
* fix reading and setting kdmrc (by resolving alternative in chroot)Olivier Blin2008-07-101-0/+6
|
* fix reading alternatives in installOlivier Blin2008-03-201-1/+1
|
* (to_utf8) export it (for rpmdrake)Thierry Vignaud2008-02-211-1/+1
|
* also detect SuSE distros (see #16604)Pascal Rigaux2008-02-011-1/+1
|
* create common::parse_release_file() out of find_root_parts()Pascal Rigaux2008-01-301-0/+8
|
* release_file(): handle /etc/fedora-releasePascal Rigaux2008-01-291-1/+1
|
* - fix configuring kdeglobals (was broken because of /etc/kderc usingPascal Rigaux2007-10-041-0/+15
| | | | | udpate-alternatives which use absolute symlinks)
* formatXiB: make it explicit that we don't support float numbersPascal Rigaux2007-09-211-1/+1
| | | | | (otherwise formatXiB(-0.1) would need to be supported whereas it was broken)
* simplify handling negative numbersPascal Rigaux2007-09-211-3/+5
|
* make formatXiB() handle negative numbers (for rpmdrake)Thierry Vignaud2007-09-211-3/+3
|
* (get_parent_uid) introduce it in order to be able to run a processThierry Vignaud2007-09-131-1/+5
| | | | | with regular user rights (#33522)
* (translate_real) simplifyThierry Vignaud2007-08-281-4/+3
|
* (translate_real) in english 1 is singular whereas 0 is plural (pixel)Thierry Vignaud2007-08-281-1/+3
|
* (translate_real) fix plural translating for C localeThierry Vignaud2007-08-281-1/+1
|
* (translate_real) fix translating plural forms by comparing the gettextThierry Vignaud2007-08-131-1/+1
| | | | | | | string to both the singular & the plural templates (#32505) (bug spoted by pixel)
* (translate_real) always use dngettext() if we have a plural stringThierry Vignaud2007-08-131-1/+1
|