Re: question about package(2).xml from CVS

From: Date: Wed, 21 Nov 2007 19:11:35 +0000
Subject: Re: question about package(2).xml from CVS
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48559@lists.php.net to get a copy of this message
Chuck Burgess schrieb:
But it's not possible to install the package with:
cd pear\Foo_Bar pear install package.xml
Odd, I would have thought that should work.
For many packages this work. Just two examples which don't work: 1) http://cvs.php.net/viewvc.cgi/pear/DB_Table/package2.xml?revision=1.33&content-type=text%2Fplain&pathrev=1.33 The problems are the "?" in <date>, <time>, <release> and <api>. You can't "install", "upgrade --force" or "package" this package without changing these values. e.g.: Index: package2.xml =================================================================== RCS file: /repository/pear/DB_Table/package2.xml,v retrieving revision 1.33 diff -u -r1.33 package2.xml --- package2.xml 21 Nov 2007 16:27:33 -0000 1.33 +++ package2.xml 21 Nov 2007 19:06:20 -0000 @@ -39,11 +39,11 @@ <email>wiesemann@php.net</email> <active>yes</active> </lead> - <date>?</date> - <time>?</time> + <date>2007-11-21</date> + <time>16:27:33</time> <version> - <release>?</release> - <api>?</api> + <release>1.5.1</release> + <api>1.5.0</api> </version> <stability> <release>stable</release> 2) http://cvs.php.net/viewvc.cgi/pear/File_Archive/package2.xml?revision=1.1&content-type=text%2Fplain&pathrev=1.1 The problem is the directory layout of the package. Of course, this CVS checkout I can package with "pear package" and then install / upgrade with the tarball. But if I want do a "pear install/upgrade --force package2.xml", I have to change the xml file. e.g.: Index: package2.xml =================================================================== RCS file: /repository/pear/File_Archive/package2.xml,v retrieving revision 1.1 diff -u -r1.1 package2.xml --- package2.xml 20 May 2007 18:11:02 -0000 1.1 +++ package2.xml 15 Nov 2007 10:50:28 -0000 @@ -41,8 +41,7 @@ but not if you exclusively use File_Archive::extract) </notes> <contents> - <dir name="/"> - <dir name="File"> + <dir name="/" baseinstalldir="File">
    <dir name="Archive">
     <dir name="Predicate">
      <file name="And.php" role="php" />
@@ -114,7 +113,6 @@
     <file name="test.php" role="test" />
    </dir> <!-- //File/tests -->
    <file name="Archive.php" role="php" />
- </dir> <!-- //File --> </dir> <!-- / --> </contents> <dependencies> Regards, Carsten

« previous php.pear.dev (#48559) next »