Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Pyrus falsely claims to fail downloading to FTP. #88

Open
boenrobot opened this issue Jan 22, 2012 · 1 comment
Open

Pyrus falsely claims to fail downloading to FTP. #88

boenrobot opened this issue Jan 22, 2012 · 1 comment
Labels
Milestone

Comments

@boenrobot
Copy link
Contributor

Using Pyrus 2.0.0a3

pyrus pypear ftp://user:pass@server/PEAR
pyrus install PEAR2_Autoload-alpha

makes Pyrus fail with the following exception:

Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D
Using PEAR installation found at ftp://user:pass@server/PEAR
Downloading pear2.php.net/PEAR2_Autoload

Connected...

PEAR2\Pyrus\Package\Exception: Invalid abstract package pear2.php.net/PEAR2_Auto
load
 PEAR2\Pyrus\HTTPException: Download of http://pear2.php.net/get/PEAR2_Autoload-
0.2.4.phar failed, file does not exist
  PEAR2\Pyrus\Package\Exception: Could not download from "http://pear2.php.net/g
et/PEAR2_Autoload-0.2.4.tgz"
   PEAR2\Pyrus\Package\Phar\Exception: Phar package  does not exist

The curious part about this however is the fact the download is successful, despite what the message says. Attempting to install the package again (hoping to bypass this error, given that the file is already downloaded), another misleading exception appears:

Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D
Using PEAR installation found at ftp://user:pass@server/PEAR
Downloading pear2.php.net/PEAR2_Autoload

Connected...

PEAR2\Pyrus\Package\Exception: Invalid abstract package pear2.php.net/PEAR2_Auto
load
 PEAR2\Pyrus\HTTPException: Download of http://pear2.php.net/get/PEAR2_Autoload-
0.2.4.phar failed, file does not exist
  PEAR2\Pyrus\Package\Exception: Could not download from "http://pear2.php.net/g
et/PEAR2_Autoload-0.2.4.tgz"
   PEAR2\Pyrus\Package\Exception: Unable to save package PEAR2_Autoload-0.2.4.tg
z to downloads directory, ftp://user:pass@server/PEAR\downloads. Do we
have permission to write there?
@saltybeagle
Copy link
Member

Oooh... interesting thought about setting your pear path to an ftp:// location. Can't say I've ever tried that.

I'm thinking we'd need another driver to handle paths like that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants