diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:15:13 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:15:13 +0000 |
commit | 8a8770ef143b0c43500b4c5d95da38cd526bb434 (patch) | |
tree | 920ba76a52628fc29f120fa33ad690f4f28876ea /gurpmi | |
parent | 51eac793bcf872ce65a3fdf517d3fe65b538dc3a (diff) | |
download | urpmi-8a8770ef143b0c43500b4c5d95da38cd526bb434.tar urpmi-8a8770ef143b0c43500b4c5d95da38cd526bb434.tar.gz urpmi-8a8770ef143b0c43500b4c5d95da38cd526bb434.tar.bz2 urpmi-8a8770ef143b0c43500b4c5d95da38cd526bb434.tar.xz urpmi-8a8770ef143b0c43500b4c5d95da38cd526bb434.zip |
perl_checker compliance
Diffstat (limited to 'gurpmi')
-rw-r--r-- | gurpmi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -35,7 +35,8 @@ $mainbox = Gtk2::VBox->new(0, 5); $mainw->add($mainbox); sub all_descriptions { - join '', qx(rpm -qp --qf '%{name}-%{version}-%{release}: %{summary}\\n' @_); + my (@rpms) = @_; + join '', `rpm -qp --qf '%{name}-%{version}-%{release}: %{summary}\\n' @rpms`; } foreach (@all_rpms) { @@ -50,7 +51,7 @@ foreach (@all_rpms) { /\.src\.rpm$/ ? push(@$srpms, $_) : push(@$rpms, $_); } -sub proceed { +sub proceed() { #- we need to switch to root if we're not already (via consolehelper) #- yes. hardcoded paths. safe. exec $> ? '/usr/bin/gurpmi2' : '/usr/sbin/gurpmi2', @ARGV; |