summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-09-20 07:07:07 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-09-20 07:07:07 +0000
commit657b3d01707e205499e3c867cb174c7e0fa1a83e (patch)
tree55fbf34c8341dd5e6c3f1de415eb4d1c4480f589 /perl-install
parent0543f5be376f3172d7d6d14679b8fe8d084a53ca (diff)
downloaddrakx-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar
drakx-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.gz
drakx-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.bz2
drakx-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.xz
drakx-657b3d01707e205499e3c867cb174c7e0fa1a83e.zip
fixes:
- don't create bogus 1 file (deush: s/2>1&/2>&1/) - don't print error messages when which cannot find the program
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakbug4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug
index c5f1e8c0e..a6715bfbd 100755
--- a/perl-install/standalone/drakbug
+++ b/perl-install/standalone/drakbug
@@ -174,8 +174,8 @@ sub update_app {
sub get_package {
my ($executable) = @_;
my ($rpm_package, $which_app);
- $which_app = chomp_(`which '$executable'`);
- $rpm_package = chomp_(`rpm -qf '$which_app' 2>1&`);
+ $which_app = chomp_(`which '$executable' 2> /dev/null`);
+ $rpm_package = chomp_(`rpm -qf '$which_app' 2>&1`);
$rpm_package;
}