summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* - for XFdrake: use update-alternatives command instead doing things by handPascal Rigaux2007-08-081-14/+1
| | | | | (this uses --set, new feature of update-alternatives) (#32362)
* - fix range max value >2TB when creating a partition (useful for LVs >2TB)Pascal Rigaux2007-08-061-1/+8
| | | | | | nb: >> 11 and << 11 doesn't work on floats which we use to handle >2TB partitions. perl floats are precise enough up until 512TB
* (mandrake_release_info) introduce it in order to have full release info (eg: ↵Thierry Vignaud2007-06-271-1/+5
| | | | for #31223)
* - diskdrakePascal Rigaux2007-06-111-5/+7
| | | | | o fix 1.9TB displayed as 1TB
* (to_utf8) tell perl this is now UTF-8 (spotted by #31067 and also seenThierry Vignaud2007-05-281-1/+3
| | | | | before in rpmdrake)
* re-sync after the big svn lossPascal Rigaux2007-04-251-50/+143
|
* let packages using common.pm to use Locale::gettext without requiring itPascal Rigaux2005-12-281-1/+1
|
* allow common.pm and standalone.pm to be used in drakxtools-backend without ↵Pascal Rigaux2005-12-181-1/+1
| | | | perl-Locale-gettext
* fix dropping sprintf_fixutf8 (i committed the wrong version...)Pascal Rigaux2005-12-151-1/+1
|
* - i had foolishly removed c::iconv whereas it was used still used by ↵Pascal Rigaux2005-12-151-0/+9
| | | | | | | | | | c::from_utf8 and c::to_utf8 - anyway, moving c::from_utf8 and c::to_utf8 to common::from_utf8 and common::to_utf8 - making them use Locale::gettext::iconv - Locale::gettext::iconv transform undef into standard charset (1.05-2mdk) - drop c::standard_charset (now unused)
* get rid of sprintf_fixutf8 which is no more needed with current perlPascal Rigaux2005-12-151-10/+3
| | | | | (it has been fixed long ago: before perl 5.8.3 (MDK10.0))
* use Locale::gettext for dgettext, bindtextdomain and bind_textdomain_codeset ↵Pascal Rigaux2005-12-151-1/+2
| | | | | | | instead of module c (that way we can also use dngettext, and it's more modular)
* fix looking for backup-ed release file firstPascal Rigaux2005-09-121-3/+5
|
* - new functionality: upgrade_by_removing_pkgs, enabled when upgrading redhat ↵Pascal Rigaux2005-09-021-1/+3
| | | | | | | | | | | and conectiva distributions - add file upgrade-map.conectiva.10 for precise choice of packages - save /etc/xxx-release into /root/drakx/xxx-release.upgrading when starting - release_file(): look for xxx-release.upgrading first - find_root_parts(): better logging about upgrade_by_removing_pkgs, and factorize code - when all packages are installed, remove xxx-release.upgrading and rename pkgs::removed_pkgs_to_upgrade_file()