diff options
-rw-r--r-- | perl/lib/Sys/Guestfs/Lib.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index e8796ad3..98cdb883 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -1439,6 +1439,7 @@ sub _check_for_applications (["rpm", "-q", "-a", "--qf", "%{name} %{epoch} %{version} %{release} %{arch}\n"]); + @lines = sort @lines; foreach (@lines) { if (m/^(.*) (.*) (.*) (.*) (.*)$/) { my $epoch = $2; @@ -1458,6 +1459,7 @@ sub _check_for_applications (["dpkg-query", "-f", '${Package} ${Version} ${Architecture} ${Status}\n', "-W"]); + @lines = sort @lines; foreach (@lines) { if (m/^(.*) (.*) (.*) (.*) (.*) (.*)$/) { if ( $6 eq "installed" ) { |