aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-20 11:10:50 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-20 11:10:50 +0000
commit8bd3be354d7c987ca7a3b027839cf328c71a4f52 (patch)
treeeb5795f505b0175309e12e176c67ba48d35f7731
parentb66e7bf8a7ea2c16b1b176eac9427653f866a785 (diff)
downloadrpmdrake-8bd3be354d7c987ca7a3b027839cf328c71a4f52.tar
rpmdrake-8bd3be354d7c987ca7a3b027839cf328c71a4f52.tar.gz
rpmdrake-8bd3be354d7c987ca7a3b027839cf328c71a4f52.tar.bz2
rpmdrake-8bd3be354d7c987ca7a3b027839cf328c71a4f52.tar.xz
rpmdrake-8bd3be354d7c987ca7a3b027839cf328c71a4f52.zip
don't redo what ugtk2 already does for us
-rwxr-xr-xedit-urpm-sources.pl12
-rwxr-xr-xgurpmi.addmedia7
2 files changed, 3 insertions, 16 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 229239e5..699fafc7 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -41,16 +41,8 @@ BEGIN { #- for mcc
}
}
-BEGIN {
- eval {
- require ugtk2; ugtk2->import(qw(:all));
- require mygtk2; mygtk2->import(qw(gtknew gtkset));
- };
- if ($@) {
- print "This program cannot be run in console mode ($@_).\n";
- POSIX::_exit(0); #- skip ugtk2::END
- }
-}
+use mygtk2 qw(gtknew gtkset);
+use ugtk2 qw(:all);
$ugtk2::wm_icon = "title-install";
$::isStandalone = 1;
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;