[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] sparemint repository maintaince
A few years ago I modified my sparemint_notify script to
try to download the new packages but I couldn't work out how
to call wget from the script.
This is a section of the script:
foreach (@obsolete)
{
my $download = "$download_url/$_-$current->{$_}->{version}-$current->{$_}->{release}.m68kmint.rpm";
print <<EOF;
Package: $_
Installed: $current->{$_}->{version} (installed: $installed->{$_}->{version})
Update : $current->{$_}->{release} (installed: $installed->{$_}->{release})
download from $download
EOF
print "Download this package now ? [y/n] ";
$response = <STDIN>;
chop $response;
$lresponse = length($response);
#print "response is $response\n";
if ( ( $lresponse == 1 )
&& (( $response eq "y") ¦¦ ($response eq "Y")) )
{
print "Downloading... (experimental, might not work) \n";
wget $current->{$_}->{release};
#use LWP::Simple;
#my $content = get{'$current->{$_}->{release}'}
}
}
it gives this error:
Can't call method "wget" on unblessed reference at ./sparemint_update line 95, <STDIN> line 2.
So I assume something more is needed to call wget but all the docs I found just
said to use the app name.
Peter