#!/bin/sh # This script compares the perl modules used by the .pm files in perl-install # against the ones listed in share/list, to detect potential missing modules # (and potential run-time problems during the stage 2) cd ../perl-install || exit 1; # list of used .pm files find . -name '*.pm' -not -name b_dump_strings.pm -not -path ./interactive/http.pm | \ xargs perl -lne '/^\s*(use|require)\s+([\w:]+)/ && print $2' | sort -u > /tmp/gi-used-pm # list of .pm files included in install perl -lne 'm{/(?:PERL_VERSION|ARCH-linux|vendor_perl/\*)/([\w/]+)\.pm$} and $_=$1, s,/,::,g, print' share/list > /tmp/gi-found-pm0 find . -name blib -prune -o -name '*.pm' | perl -ne 's,^\./,,; s/\.pm$// or next; s,/,::,g; print' >> /tmp/gi-found-pm0 # compute difference sort -u /tmp/gi-found-pm0 > /tmp/gi-found-pm diff -u /tmp/gi-{used,found}-pm | perl -lne 'BEGIN{print"Unpackaged modules:"} s/^-(?!-)/ / && print' # cleanup rm -f /tmp/gi-used-pm /tmp/gi-found-pm{,0} 2a0a2936b8d05d04db3fe45694010a09fbb3730'/> Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-28 12:44:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-28 12:44:04 +0000
commit62a0a2936b8d05d04db3fe45694010a09fbb3730 (patch)
tree151a570e1c118589e05e595a9e917086795b7cd3 /perl-install
parentdaf6a951136ebec9ca194925bf36eb722431ab84 (diff)
downloaddrakx-backup-do-not-use-62a0a2936b8d05d04db3fe45694010a09fbb3730.tar
drakx-backup-do-not-use-62a0a2936b8d05d04db3fe45694010a09fbb3730.tar.gz
drakx-backup-do-not-use-62a0a2936b8d05d04db3fe45694010a09fbb3730.tar.bz2
drakx-backup-do-not-use-62a0a2936b8d05d04db3fe45694010a09fbb3730.tar.xz
drakx-backup-do-not-use-62a0a2936b8d05d04db3fe45694010a09fbb3730.zip
fix displaying package tree (was empty since moving from XXX to CAT_XXX)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps_gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm
index f939fdb29..efd7fe8c2 100644
--- a/perl-install/install_steps_gtk.pm
+++ b/perl-install/install_steps_gtk.pm
@@ -279,7 +279,7 @@ sub choosePackagesTree {
} else {
foreach my $root (@{$o->{compssUsers}}) {
my (@firstchoice, @others);
- my %fl = map { $_ => 1 } @{$root->{flags}};
+ my %fl = map { ("CAT_$_" => 1) } @{$root->{flags}};
foreach my $p (@{$packages->{depslist}}) {
!$o_limit_medium || pkgs::packageMedium($packages, $p) == $o_limit_medium or next;
my @flags = $p->rflags;