summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive10
1 files changed, 10 insertions, 0 deletions
diff --git a/draklive b/draklive
index d35b19c..59fe60e 100755
--- a/draklive
+++ b/draklive
@@ -870,6 +870,16 @@ sub write_dist_lists {
mkdir_p(dirname($lst));
run_("chroot " . get_system_root($live) . " rpm -qa | sort > " . $lst);
+ my $full = get_builddir($live) . $live->{prefix}{build}{dist} . '/' . get_live_name($live) . '.lst.full';
+ mkdir_p(dirname($full));
+ run_("chroot " . get_system_root($live) .
+ qq( sh -c "rpm -qa --qf '%{size} \t%{name}\n' | sort -n" > ) . $full);
+
+ my $leaves = get_builddir($live) . $live->{prefix}{build}{dist} . '/' . get_live_name($live) . '.lst.leaves';
+ mkdir_p(dirname($leaves));
+ run_("chroot " . get_system_root($live) .
+ qq( sh -c "urpmi_rpm-find-leaves | xargs rpm -q --qf '%{size} \t%{name}\n' | sort -n" > ) . $leaves);
+
require lang;
my @live_langs = get_langs($live);
my @langs = grep { member(lang::locale_to_main_locale($_), @live_langs) } lang::list_langs();