diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-10-17 18:57:18 +0100 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-10-28 21:44:20 +0000 |
commit | 1aa41a829e4d316cff3d3849c784ca609b810023 (patch) | |
tree | 0bd7c8fd30556f3908f81c203452e4ba51e68626 /lib/MGA | |
parent | 4cbbc7620d55f71e2461d09c2c068475089c3b40 (diff) | |
download | drakiso-1aa41a829e4d316cff3d3849c784ca609b810023.tar drakiso-1aa41a829e4d316cff3d3849c784ca609b810023.tar.gz drakiso-1aa41a829e4d316cff3d3849c784ca609b810023.tar.bz2 drakiso-1aa41a829e4d316cff3d3849c784ca609b810023.tar.xz drakiso-1aa41a829e4d316cff3d3849c784ca609b810023.zip |
BuildRoot: fix rpm query formats (rpm behaviour has changed).
Diffstat (limited to 'lib/MGA')
-rw-r--r-- | lib/MGA/DrakISO/BuildRoot.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index 894657d..252f8d1 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -647,10 +647,10 @@ sub write_dist_lists { run_in_root($root, undef, "rpm -qa --qf '%{name}\n' | sort > " . $lists_dir . '/' . $build->get_name . '.lst.names'); - run_in_root($root, undef, qq( sh -c "rpm -qa --qf '[%{NAME} %{FILESIZES} %{FILESTATES}\n]' | awk '{if(\\\$3==0) {s[\\\$1]+=\\\$2}} END{for (p in s){print s[p],p}}' | sort -n" > ) . + run_in_root($root, undef, qq( sh -c "rpm -qa --qf '[%{=NAME} %{FILESIZES} %{FILESTATES}\n]' | awk '{if(\\\$3==0) {s[\\\$1]+=\\\$2}} END{for (p in s){print s[p],p}}' | sort -n" > ) . $lists_dir . '/' . $build->get_name . '.lst.full'); - run_in_root($root, undef, qq( sh -c "urpmi_rpm-find-leaves | xargs rpm -q --qf '[%{NAME} %{FILESIZES} %{FILESTATES}\n]' | awk '{if(\\\$3==0) {s[\\\$1]+=\\\$2}} END{for (p in s){print s[p],p}}' | sort -n" > ) . + run_in_root($root, undef, qq( sh -c "urpmi_rpm-find-leaves | xargs rpm -q --qf '[%{=NAME} %{FILESIZES} %{FILESTATES}\n]' | awk '{if(\\\$3==0) {s[\\\$1]+=\\\$2}} END{for (p in s){print s[p],p}}' | sort -n" > ) . $lists_dir . '/' . $build->get_name . '.lst.leaves'); require lang; |