summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm26
1 files changed, 15 insertions, 11 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 0c56f6a11..ac8717f42 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -454,6 +454,12 @@ sub selectPackagesToUpgrade($$$) {
log::l("done selecting packages to upgrade");
}
+sub installCallback {
+ my $msg = shift;
+
+ log::l($msg .": ". join(',', @_));
+}
+
sub install($$) {
my ($prefix, $toInstall) = @_;
my %packages;
@@ -476,7 +482,6 @@ sub install($$) {
c::headerGetEntry(getHeader($p), 'arch');
$packages{$p->{name}} = $p;
c::rpmtransAddPackage($trans, getHeader($p), $p->{name}, $p->{name} !~ /kernel/); #- TODO: replace `named kernel' by `provides kernel'
-# c::rpmtransAddPackage($trans, getHeader($p), $p->{file}, 1); #- TODO: replace `named kernel' by `provides kernel'
$nb++;
$total += $p->{size};
}
@@ -491,12 +496,6 @@ sub install($$) {
eval { fs::mount("/proc", "$prefix/proc", "proc", 0) };
- #- if someone try to change the function log::ld or the parameters used,
- #- DON TRY THAT unless you have modified accordingly install_steps_gtk.
- #- because log::ld is catched, furthermore do not translate the messages used.
- log::l("starting installation: ", $nb, " packages, ", $total, " bytes");
- log::ld("starting installation: ", $nb, " packages, ", $total, " bytes");
-
my $callbackOpen = sub {
my $f = (my $p = $packages{$_[0]})->{file};
print LOG "$f\n";
@@ -504,11 +503,16 @@ sub install($$) {
$fd ? fileno $fd : -1;
};
my $callbackClose = sub { $packages{$_[0]}{installed} = 1; };
- my $callbackStart = sub { log::ld("starting installing package ", $_[0]) };
- my $callbackProgress = sub { log::ld("progressing installation ", $_[0], "/", $_[1]) };
+ my $callbackMessage = \&pkgs::installCallback;
+# my $callbackStart = sub { log::ld("starting installing package ", $_[0]) };
+# my $callbackProgress = sub { log::ld("progressing installation ", $_[0], "/", $_[1]) };
+
+ #- do not modify/translate the message used with installCallback since
+ #- these are keys during progressing installation, or change in other
+ #- place (install_steps_gtk.pm,...).
+ &$callbackMessage("Starting installation", $nb, $total);
- if (my @probs = c::rpmRunTransactions($trans, $callbackOpen, $callbackClose,
- $callbackStart, $callbackProgress, 0)) {
+ if (my @probs = c::rpmRunTransactions($trans, $callbackOpen, $callbackClose, $callbackMessage, 0)) {
my %parts;
@probs = reverse grep {
if (s/(installing package) .* (needs (?:.*) on the (.*) filesystem)/$1 $2/) {
`defrag'' utility, then restart "
-"the Mageia installation."
+"the %s installation."
msgstr ""
"আপনার উইন্ডোজের পার্টিশনটি প্রচন্ড অসম। অনুগ্রহ করে আপনার কম্পিউটারটি উইন্ডোজে রি-বুট "
"করে, ``defrag'' ইউটিলিটি চালান, পরে রি-ষ্টার্ট করে আবার মেনড্রক ইনস্টলেশন চালান।"
@@ -4812,13 +4812,13 @@ msgid ""
"Introduction\n"
"\n"
"The operating system and the different components available in the Mageia "
-"Linux distribution \n"
+"distribution \n"
"shall be called the \"Software Products\" hereafter. The Software Products "
"include, but are not \n"
"restricted to, the set of programs, methods, rules and documentation related "
"to the operating \n"
-"system and the different components of the Mageia distribution, and "
-"any applications \n"
+"system and the different components of the Mageia distribution, and any "
+"applications \n"
"distributed with these products provided by Mageia's licensors or "
"suppliers.\n"
"\n"
@@ -4875,8 +4875,8 @@ msgid ""
"judgment, or any \n"
"other consequential loss) arising out of the possession and use of software "
"components or \n"
-"arising out of downloading software components from one of Mageia "
-"sites which are \n"
+"arising out of downloading software components from one of Mageia sites "
+"which are \n"
"prohibited or restricted in some countries by local laws.\n"
"This limited liability applies to, but is not restricted to, the strong "
"cryptography components \n"
@@ -4914,8 +4914,7 @@ msgid ""
"Mageia and its suppliers and licensors reserves their rights to modify or "
"adapt the Software \n"
"Products, as a whole or in parts, by all means and for all purposes.\n"
-"\"Mageia\", \"Mageia\" and associated logos are trademarks of "
-"Mageia \n"
+"\"Mageia\", \"Mageia\" and associated logos are trademarks of Mageia \n"
"\n"
"\n"
"5. Governing Laws \n"
@@ -4959,8 +4958,7 @@ msgid ""
"Remove the boot media and press Enter to reboot.\n"
"\n"
"\n"
-"For information on fixes which are available for this release of Mageia "
-"Linux,\n"
+"For information on fixes which are available for this release of Mageia,\n"
"consult the Errata available from:\n"
"\n"
"\n"