[PEAR-BUG] Bug #20514 [Com]: invalid package.xml; not installable with pyrus

[email protected] ("alsin") Mon, 23 Mar 2015 16:46:32 +0000 (GMT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=20514&edit=1

 ID:               20514
 Comment by:       alsin
 Reported By:      sinyushkin at gmail dot com
 Summary:          invalid package.xml; not installable with pyrus
 Status:           Open
 Type:             Bug
 Package:          Archive_Tar
 Operating System: Debian
 PHP Version:      5.4.38
 New Comment:

Hi,

Just for anyone who's met up with this problem: you can go inside the
'downloads' folder of the pyrus, de-archive the Archive_Tar-1.3.15.tar.
The result should be the Archive_Tar-1.3.15 folder and the package.xml.
Inside the package.xml there's a <date></date> tag missing in the first
<release> of the <changelog>. Just add there the tags with some date and
save. Then remove the original .tar archive and create a new one at its
place with the same name from the de-archived Archive_Tar-1.3.15 folder
and the package.xml you've just edited. Then go to the console and
install the Archive_Tar from your local .tar by specifying this command:
C:\path\to\php.exe C:\path\to\pyrus.phar install
path/to/pear/downloads/Archive_Tar-1.3.15.tar. The installation should
succeed now. And from now on you can install the PEAR itself.


Previous Comments:
------------------------------------------------------------------------

[2015-03-11 18:35:13] cweiske

<div id="changeset">
<span class="removed">-Package: PEAR</span>
<span class="added">+Package: Archive_Tar</span>
</div>

------------------------------------------------------------------------

[2015-03-11 17:23:35] piticli

Description:
------------
./pyrus install pear/pear

Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /opt/phpfarm/inst/php-5.4.38/pear
Downloading pear.php.net/PEAR
Mime-type: application/octet-stream
Downloading
pear.php.net/Archive_Tar=================================================================>]
100% (283/283 kb)
Mime-type: application/octet-stream
Mime-type:
application/octet-stream==================================================================>]
100% (19/19 kb)
Pyrus\Package\Exception: Could not download abstract package
pear.php.net/Archive_Tar
 Pyrus\HTTPException: Download of
http://pear.php.net/get/Archive_Tar-1.3.15.phar failed, file does not
exist
  Pyrus\Package\Exception: Could not download from
"http://pear.php.net/get/Archive_Tar-1.3.15.tgz"
   Pyrus\PackageFile\Exception: Invalid package.xml
    Pyrus\XMLParser\Exception: Invalid XML document
     Pyrus\XMLParser\Exception: Line 0: Element
'{http://pear.php.net/dtd/package-2.0}notes': This element is not
expected. Expected is ( {http://pear.php.net/dtd/package-2.0}date ).

      Pyrus\Package\Exception: Could not download from
"http://pear.php.net/get/Archive_Tar-1.3.15.tar"
       Pyrus\PackageFile\Exception: Invalid package.xml
        Pyrus\XMLParser\Exception: Invalid XML document
         Pyrus\XMLParser\Exception: Line 0: Element
'{http://pear.php.net/dtd/package-2.0}notes': This element is not
expected. Expected is ( {http://pear.php.net/dtd/package-2.0}date ).

          Pyrus\HTTPException: Download of
http://pear.php.net/get/Archive_Tar-1.3.15.zip failed, file does not
exist

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=20514&edit=1