summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-14 12:19:22 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-14 12:19:22 +0000
commit3959d3def013c80f94c59c0836af69be01d805b2 (patch)
tree4e90c3adb9f0e666140043cd9a476c58fb4690ba
parent02e9c2c027ac49dce580521a7279b1968836685d (diff)
downloaddrakx-3959d3def013c80f94c59c0836af69be01d805b2.tar
drakx-3959d3def013c80f94c59c0836af69be01d805b2.tar.gz
drakx-3959d3def013c80f94c59c0836af69be01d805b2.tar.bz2
drakx-3959d3def013c80f94c59c0836af69be01d805b2.tar.xz
drakx-3959d3def013c80f94c59c0836af69be01d805b2.zip
fixed umask on urpmi list file and generate synthesis file for each hdlist.
-rw-r--r--perl-install/install_any.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index dcdb13900..640de4a14 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -464,8 +464,14 @@ sub install_urpmi {
my @cfg = map_index {
my $name = $_->{fakemedium};
+ #- build synthesis file at install, this will improve performance greatly.
+ run_program::rooted($prefix, "parsehdlist", ">", "/var/lib/urpmi/synthesis.hdlist.$name.cz",
+ "--compact", "--provides", "--requires", "/var/lib/urpmi/hdlist.$name.cz");
+
local *LIST;
- open LIST, ">$prefix/var/lib/urpmi/list.$name" or log::l("failed to write list.$name"), return;
+ my $mask = umask 077;
+ open LIST, ">$prefix/var/lib/urpmi/list.$name" or log::l("failed to write list.$name");
+ umask $mask;
my $dir = ${{ nfs => "file://mnt/nfs",
hd => "file:/" . hdInstallPath(),