diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-20 07:07:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-20 07:07:07 +0000 |
commit | 657b3d01707e205499e3c867cb174c7e0fa1a83e (patch) | |
tree | 55fbf34c8341dd5e6c3f1de415eb4d1c4480f589 | |
parent | 0543f5be376f3172d7d6d14679b8fe8d084a53ca (diff) | |
download | drakx-backup-do-not-use-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar drakx-backup-do-not-use-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.gz drakx-backup-do-not-use-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.bz2 drakx-backup-do-not-use-657b3d01707e205499e3c867cb174c7e0fa1a83e.tar.xz drakx-backup-do-not-use-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
-rwxr-xr-x | perl-install/standalone/drakbug | 4 |
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; } |