Re: PEAR_PackageFileManager: Error: Invalid tag order
| From: | Torsten Roehr | Date: | Sun, 17 Sep 2006 16:20:21 +0000 |
| Subject: | Re: PEAR_PackageFileManager: Error: Invalid tag order | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25155@lists.php.net to get a copy of this message | ||
"Laurent Laville" <pear@laurent-laville.org> schrieb im Newsbeitrag
news:450C06FA.2030107@laurent-laville.org...
> Hi,
>
> This is a common error, when people uses PEAR_PackageFileManager2 (PFM2)
> class.
>
> If you read carefully the source code of the PFM2 class (lines 143-145)
> you 'll see this :
>
>
> * // for an existing package.xml use
> * // $packagexml = {@link importOptions()} instead
> * $e = $packagexml->setOptions(
>
>
> When you have already generated a package xml 1.0 and 2.0, PLEASE USE
> importOptions() instead of setOptions().
>
> REASON is :
> package.xml is 1.0 while package2.xml is version 2.0
>
> and when you try again to generate a new version without giving the option
> "packagefile" ("packagefile" => "package2.xml"), PFM2 consider
> that your
> package xml 2.0 is by default called "package.xml" what is wrong in this
> case. (Due to exportCompatiblePackageFile1 method).
>
> This is a reason why i've introduces new example called
> "examples\updatepackage.php" into distribution.
>
> BTW, i think we will drop soon package xml 1.0 support in next releases.
> This problem should not be a REAL ONE in future .
>
>
> Hope it will help, and i didn't said stupidity. Fix me if i'm wrong Greg
> ?!
>
> regards
> Laurent
Thank you very much for your quick response, Laurent. With the help of the
example script I got it to work and could make a new release today.
Best regards, Torsten