installing from an url doesnt workDescription:
------------
I tried installing a package by specifying the exact URL in order to see if this would ignore the state check (I would expect it to ignore the state). However I got the following results:
C:\php>pear install http://pear.php.net/get/LiveUser-0.9.tgz
Package name 'http://pear.php.net/get/LiveUser-0.9.tgz' not valid
smith@... [2003-11-14 07:12:26]http://pear.php.net/bugs/249
PEAR Bug
Reported by smith@...
2003-11-14T07:12:26+00:00
PHP: 4.3.3 OS: Windows Package Version:
Description:
------------
I tried installing a package by specifying the exact URL in order to see if this would ignore the state check (I would expect it to ignore the state). However I got the following results:
C:\php>pear install http://pear.php.net/get/LiveUser-0.9.tgz
Package name 'http://pear.php.net/get/LiveUser-0.9.tgz' not valid]]>PEAR Bug
Reported by smith@...
2003-11-14T07:12:26+00:00
PHP: 4.3.3 OS: Windows Package Version:
Description:
------------
I tried installing a package by specifying the exact URL in order to see if this would ignore the state check (I would expect it to ignore the state). However I got the following results:
C:\php>pear install http://pear.php.net/get/LiveUser-0.9.tgz
Package name 'http://pear.php.net/get/LiveUser-0.9.tgz' not valid]]>2003-11-14T07:12:26+00:00
clay [2004-04-09 17:01] http://pear.php.net/bugs/249#1081530079
This bug's status is Closed -- however, I am still
experiencing the exact problem described by Lukas as of
PEAR 1.3.1.
Did this bug reappear since the Nov 17 fix?]]>This bug's status is Closed -- however, I am still
experiencing the exact problem described by Lukas as of
PEAR 1.3.1.
Did this bug reappear since the Nov 17 fix?]]>2004-04-09T17:01:19+00:00
cellog [2003-11-17 00:48] http://pear.php.net/bugs/249#1069030089
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
I knew it :) The "improvements" to my download code broke things, causing this bug. Shortcuts are always bad no matter how clever. I forgot to make a patch prior to commit. Here's the lines that must be added at line 743 of Installer.php:
if (preg_match('#^(http|ftp)://#', $pkgfile)) {
$pkgfile = $this->_downloadFile($pkgfile, $config, $options,
$errors, $version, $origpkgfile,
$state);
if (PEAR::isError($pkgfile)) {
return $pkgfile;
}
$tempinfo = $this->infoFromAny($pkgfile);
if (isset($options['alldeps']) || isset($options['onlyreqdeps'])) {
// ignore dependencies if there are any errors
if (!PEAR::isError($tempinfo)) {
$mywillinstall[strtolower($tempinfo['package'])] = @$tempinfo['release_deps'];
}
}
$installpackages[] = array('pkg' => $tempinfo['package'],
'file' => $pkgfile, 'info' => $tempinfo);
continue;
}]]>This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
I knew it :) The "improvements" to my download code broke things, causing this bug. Shortcuts are always bad no matter how clever. I forgot to make a patch prior to commit. Here's the lines that must be added at line 743 of Installer.php:
if (preg_match('#^(http|ftp)://#', $pkgfile)) {
$pkgfile = $this->_downloadFile($pkgfile, $config, $options,
$errors, $version, $origpkgfile,
$state);
if (PEAR::isError($pkgfile)) {
return $pkgfile;
}
$tempinfo = $this->infoFromAny($pkgfile);
if (isset($options['alldeps']) || isset($options['onlyreqdeps'])) {
// ignore dependencies if there are any errors
if (!PEAR::isError($tempinfo)) {
$mywillinstall[strtolower($tempinfo['package'])] = @$tempinfo['release_deps'];
}
}
$installpackages[] = array('pkg' => $tempinfo['package'],
'file' => $pkgfile, 'info' => $tempinfo);
continue;
}]]>2003-11-17T00:48:09+00:00