From 8bd3be354d7c987ca7a3b027839cf328c71a4f52 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 Feb 2007 11:10:50 +0000 Subject: don't redo what ugtk2 already does for us --- gurpmi.addmedia | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gurpmi.addmedia') diff --git a/gurpmi.addmedia b/gurpmi.addmedia index 542e07e9..3920baf4 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -50,12 +50,7 @@ require_root_capability(); use rpmdrake; use Getopt::Long; -eval { require ugtk2; ugtk2->import(qw(:all)) }; -if ($@) { - print "This program cannot be run in console mode.\n"; - use POSIX qw(_exit); - _exit(0); #- skip ugtk2::END -} +use ugtk2 qw(:all); $::isStandalone = 1; my $fromfile; -- cgit v1.2.1