aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-07 16:38:49 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-07 16:38:49 +0000
commitb64617d76d854e4c49fe91ed85354f9d937f4e2e (patch)
tree0228cb104a7a2a45fd9c145505ce850cec3a1b36 /Rpmdrake
parent17367e8da80ec66b4a23dff8f12a60d44eca97a3 (diff)
downloadrpmdrake-b64617d76d854e4c49fe91ed85354f9d937f4e2e.tar
rpmdrake-b64617d76d854e4c49fe91ed85354f9d937f4e2e.tar.gz
rpmdrake-b64617d76d854e4c49fe91ed85354f9d937f4e2e.tar.bz2
rpmdrake-b64617d76d854e4c49fe91ed85354f9d937f4e2e.tar.xz
rpmdrake-b64617d76d854e4c49fe91ed85354f9d937f4e2e.zip
(easy_add_callback) fix crash when adding sources on startup (#29252)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/edit_urpm_sources.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 35f18412..d631f4f7 100755
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -71,6 +71,7 @@ sub remove_row {
sub easy_add_callback() {
#- cooker and community don't have update sources
+ $urpm ||= urpm->new; # when called on early init by rpmdrake
my $want_base_distro = distro_type(0) eq 'updates' ? interactive_msg(
N("Choose media type"),
N("This step enables you to add sources from a Mandriva Linux web or FTP mirror.