aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-05-12 16:01:10 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-05-12 16:01:10 +0000
commite4c4b187dd9d69c422d4e7e1318104fc98034b4b (patch)
tree02a0cac5dd61d7997f4e9b07b15fb593ffec2f89 /edit-urpm-sources.pl
parentd99db036fdc356530e51d7fee939f75a45c4221c (diff)
downloadrpmdrake-e4c4b187dd9d69c422d4e7e1318104fc98034b4b.tar
rpmdrake-e4c4b187dd9d69c422d4e7e1318104fc98034b4b.tar.gz
rpmdrake-e4c4b187dd9d69c422d4e7e1318104fc98034b4b.tar.bz2
rpmdrake-e4c4b187dd9d69c422d4e7e1318104fc98034b4b.tar.xz
rpmdrake-e4c4b187dd9d69c422d4e7e1318104fc98034b4b.zip
make rpmdrake.pm a real perl package, because of auto requires/deps on perl stuff from within rpm :/
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 5af94d02..5973d152 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -29,6 +29,11 @@ require_root_capability();
use rpmdrake;
+eval { require ugtk2; ugtk2->import(qw(:all)) };
+if ($@) {
+ print "This program cannot be run in console mode.\n";
+ c::_exit(0); #- skip ugtk2::END
+}
$::isStandalone = 1;