diff options
author | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-05-17 18:57:36 +0000 |
---|---|---|
committer | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-05-17 18:57:36 +0000 |
commit | 2ba19c144a7cdcc42c8bedc5400fce6b0a872415 (patch) | |
tree | b1c834b1bb6f571ffb34315e823851e73c1bf051 | |
parent | d62aa3737da4eaecb1dbd6fc42c3a268edddf024 (diff) | |
download | mgaonline-2ba19c144a7cdcc42c8bedc5400fce6b0a872415.tar mgaonline-2ba19c144a7cdcc42c8bedc5400fce6b0a872415.tar.gz mgaonline-2ba19c144a7cdcc42c8bedc5400fce6b0a872415.tar.bz2 mgaonline-2ba19c144a7cdcc42c8bedc5400fce6b0a872415.tar.xz mgaonline-2ba19c144a7cdcc42c8bedc5400fce6b0a872415.zip |
* mdkonline.pm: Added more missing use statements.
(get_my_mdv_profile): Fixed subroutine call (readability only).
-rwxr-xr-x | mdkapplet-add-media-helper | 4 | ||||
-rw-r--r-- | mdkonline.pm | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/mdkapplet-add-media-helper b/mdkapplet-add-media-helper index 3f0a4e17..c8d3c440 100755 --- a/mdkapplet-add-media-helper +++ b/mdkapplet-add-media-helper @@ -33,10 +33,6 @@ use mdkonline qw($product_id); use mdkapplet_gui; use urpm::cfg; -use XML::Simple; -use HTTP::Request::Common; -use HTTP::Request; - BEGIN { unshift @::textdomains, 'mdkonline' } # %product is keyed by product id and it contains the data to add diff --git a/mdkonline.pm b/mdkonline.pm index 56f5b560..6c0659f6 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -31,6 +31,9 @@ use ugtk2; use LWP::UserAgent; use URI::Escape; +use XML::Simple; +use HTTP::Request::Common; +use HTTP::Request; our @ISA = qw(Exporter); our @EXPORT = qw(find_current_distro @@ -252,9 +255,9 @@ sub get_from { sub get_my_mdv_profile { my ($email, $password) = @_; - xml2perl(mdkonline::get_from('https://my.mandriva.com/rest/authenticate', - [ 'username', $email, 'password', $password, - 'return', 'userdata' ])); + xml2perl(get_from('https://my.mandriva.com/rest/authenticate', + [ 'username', $email, 'password', $password, + 'return', 'userdata' ])); } # callers need to require XML::Simple |