summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-10-21 10:51:49 +0000
committerDaouda Lo <daouda@mandriva.com>2004-10-21 10:51:49 +0000
commit16390737c05849253fe5bf0d7b2d5593f7f683c0 (patch)
tree62f734a8a62f8a1a061ce3c8304cdcced9eecb87 /perl-install
parent34e2d4e82d1900c508b0ef0bdadb2767a4854e34 (diff)
downloaddrakx-16390737c05849253fe5bf0d7b2d5593f7f683c0.tar
drakx-16390737c05849253fe5bf0d7b2d5593f7f683c0.tar.gz
drakx-16390737c05849253fe5bf0d7b2d5593f7f683c0.tar.bz2
drakx-16390737c05849253fe5bf0d7b2d5593f7f683c0.tar.xz
drakx-16390737c05849253fe5bf0d7b2d5593f7f683c0.zip
- backport fixes to MDK-10-update
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/printerdrake8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake
index 42694f065..f6965dfbf 100755
--- a/perl-install/standalone/printerdrake
+++ b/perl-install/standalone/printerdrake
@@ -169,8 +169,12 @@ my ($menu, $factory) = create_factory_menu($::isEmbedded ? $::Plug : $us->{wnd}{
();
}, undef, '<CheckItem>' ],
[ N("/_Help"), undef, undef, undef, '<Branch>' ],
- [ N("/_Help").N("/_Help"), undef, sub { HelpSystem() }, undef, '<StockItem>', 'gtk-help' ],
- [ N("/_Help").N("/_Report Bug"), undef, sub { system("$ENV{BROWSER} https://qa.$domainname &") }, undef, '<StockItem>', 'gtk-stop' ],
+ if_(-x "/usr/sbin/drakhelp_inst",
+ [ N("/_Help").N("/_Help"), undef, sub { HelpSystem() }, undef, '<StockItem>', 'gtk-help' ],
+ ),
+ if_(!-e "/etc/sysconfig/oem",
+ [ N("/_Help").N("/_Report Bug"), undef, sub { system("$ENV{BROWSER} https://qa.$domainname &") }, undef, '<StockItem>', 'gtk-stop' ],
+ ),
[ N("/_Help").N("/_About..."), undef, \&About, undef, '<StockItem>', 'gtk-preferences' ]
)
);