diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-18 16:02:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-18 16:02:44 +0000 |
commit | b45b03e990321511a81c28479ecf2315ca72f546 (patch) | |
tree | 0a92255a7718caf04508e5f342e46c51853b44f4 /mdkapplet-restricted-helper | |
parent | 3885aab7e9e3c2d8484fce3b3b9c222403a98c8e (diff) | |
download | mgaonline-b45b03e990321511a81c28479ecf2315ca72f546.tar mgaonline-b45b03e990321511a81c28479ecf2315ca72f546.tar.gz mgaonline-b45b03e990321511a81c28479ecf2315ca72f546.tar.bz2 mgaonline-b45b03e990321511a81c28479ecf2315ca72f546.tar.xz mgaonline-b45b03e990321511a81c28479ecf2315ca72f546.zip |
factorize get_from() (thus making mdkapplet-enterprise-update-helper
report distro version too)
Diffstat (limited to 'mdkapplet-restricted-helper')
-rwxr-xr-x | mdkapplet-restricted-helper | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper index 18aefdb1..e3e19b63 100755 --- a/mdkapplet-restricted-helper +++ b/mdkapplet-restricted-helper @@ -107,18 +107,6 @@ sub get_restricted_authentication() { } } -sub get_from { - my ($link, $header) = @_; - - my $ua = LWP::UserAgent->new; - $ua->agent(sprintf('mdkapplet (mdkonline-%s; distribution: %s)', - $mdkonline::version, $version)); - $ua->env_proxy; - - my $response = $ua->request(POST $link, $header); - $response; -} - my $error; sub add_restricted_medium { my ($email, $password) = @_; |