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

Pyrus falsely claims to fail downloading to FTP. #88

Open

Description

@boenrobot

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?

Activity

  1. saltybeagle commented on Feb 11, 2012

    @saltybeagle
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions