Re: Pear channels, uri, package_filemanager, etc. I cannot make my package

From: Date: Sun, 26 Nov 2006 14:36:56 +0000
Subject: Re: Pear channels, uri, package_filemanager, etc. I cannot make my package
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45014@lists.php.net to get a copy of this message
Hello, On 11/26/06, Coda <golgote@mamasam.com> wrote:
Hi, I'd like to use package_filemanager to generate a package.xml file with version 2 format. Whatever I try, I always get a result like this one : PEAR_PackageFileManager2 Error: Package validation failed: Error: Invalid tag order in <package>, found <summary> expected one of "channel, uri" Error: package.xml <package> tag has no version attribute, or version is not 2.0 or other variants. I don't have a channel setup for my packages yet and I don't know what to put in uri since it is not documented apparently.
You're right, it looks like the docs are lacking some descriptions for URI based packages. URI based packages can be set by using: $packagexml->setUri('http://www.example.com/Package-1.2.3'); ... without the .tar or .tgz extension. But the file Package-1.2.3.tar and .tgz should be present at the given URI. Also note that URI based packages are release based.
Can somebody help me ? Should I write the package2.xml file by hand ? Or is there a tutorial somewhere on how to do this and maybe also how to setup a server with channels.
I wouldn't write the package.xml by hand. Even if you did, for a package 2 xml file to be valid you would need either a uri or a channel. To set up your own channel, I would start by using Greg's post on channel setup: http://greg.chiaraquartet.net/archives/123-Setting-up-your-own-PEAR-channel-with-Chiara_PEAR_Server-the-official-way.html Once you have a channel server set up, I think you'll need to pear channel-discover mypearchannel.example.com before PEAR can validate the package.xml file for a given channel. -- -Brett http:saltybeagle.com aim:ianswerq

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