Re: Fw: [PEAR-CVS] cvs: pearweb / TODO

From: Date: Fri, 22 Feb 2002 07:16:21 +0000
Subject: Re: Fw: [PEAR-CVS] cvs: pearweb / TODO
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4833@lists.php.net to get a copy of this message
At this point, I don't think we need to worry about changing the layout of the package dist files as long as we can convert existing tgz files automatically (and we can in this case). That being said, I think the package.xml files in most tgz files today are only "slightly dtd compliant". "pear package" needs to become more strict. I'm thinking about using the XML_Tree class to make validation easier. - Stig On Fri, 2002-02-22 at 00:36, Vincent Blavet wrote: > I did modifications on Packager.php and Installer.php in order to have the > package.xml file in 'root' directory in the archive, and then a folder for > the version (see todo bellow). > > Please note that it is not compatible with current uploaded release .tgz > files. Should I try to support also the current format ? > > May I commit the changes ? Do you think about other files impacted by this > change ? > > Vincent > > Diffs : > > cvs diff Packager.php (in directory D:\php\bin\php\pear\PEAR\) > Index: Packager.php > =================================================================== > RCS file: /repository/php4/pear/PEAR/Packager.php,v > retrieving revision 1.23 > diff -r1.23 Packager.php > 136c136 > < $filelist[$i++] = $pkgfile; > --- > > //$filelist[$i++] = $pkgfile; > 152c152 > < if (!$tar->createModify($filelist, $pkgver)) { > --- > > if (!$tar->create($pkgfile)) { > 154a155,161 > > if (!$tar->addModify($filelist, $pkgver)) { > > return $this->raiseError('an error ocurred during package > creation'); > > } > > > > //if (!$tar->createModify($filelist, $pkgver)) { > > // return $this->raiseError('an error ocurred during package > creation'); > > //} > > *****CVS exited normally with code 1***** > > cvs diff Installer.php (in directory D:\php\bin\php\pear\PEAR\) > Index: Installer.php > =================================================================== > RCS file: /repository/php4/pear/PEAR/Installer.php,v > retrieving revision 1.36 > diff -r1.36 Installer.php > 143c143,144 > < $orig_file = $tmp_path . DIRECTORY_SEPARATOR . $file; > --- > > //$orig_file = $tmp_path . DIRECTORY_SEPARATOR . $file; > > $orig_file = $tmp_path . DIRECTORY_SEPARATOR . > $this->pkginfo['package'] . '-' . $this->pkginfo['version'] > . > DIRECTORY_SEPARATOR .$file; > 262c263,264 > < $descfile = $tmpdir . DIRECTORY_SEPARATOR . $pkgdir . > DIRECTORY_SEPARATOR . 'package.xml'; > --- > > // $descfile = $tmpdir . DIRECTORY_SEPARATOR . $pkgdir . > DIRECTORY_SEPARATOR . 'package.xml'; > > $descfile = $tmpdir . DIRECTORY_SEPARATOR . 'package.xml'; > > *****CVS exited normally with code 1***** > > > > ----- Original Message ----- > From: "Stig Bakken" <ssb@fast.no> > To: <pear-cvs@lists.php.net> > Sent: Thursday, February 21, 2002 4:03 PM > Subject: [PEAR-CVS] cvs: pearweb / TODO > > > > ssb Thu Feb 21 10:03:08 2002 EDT > > > > Modified files: > > /pearweb TODO > > Log: > > some updates > > > > > > Index: pearweb/TODO > > diff -u pearweb/TODO:1.9 pearweb/TODO:1.10 > > --- pearweb/TODO:1.9 Wed Jan 30 04:02:55 2002 > > +++ pearweb/TODO Thu Feb 21 10:03:05 2002 > > @@ -1,5 +1,12 @@ > > SHORT TERM: > > > > +* package format: > > +** package.xml file needs to move to the top level in the tar file > > + new format will be: > > + package.xml > > + Foo-1.0/ > > + Foo-1.0/Foo.php > > + > > * xmlrpc authentication > > > > * "pear configure" to make ~/.pearrc: > > @@ -19,7 +26,8 @@ > > * xmlrpc server methods > > ** package.alter > > ** package.annotate > > -** package.newestRelease(package, [state]) > > +** release.newestByState(state, [package]) > > +** release.newestByPackage(package, [state]) > > ** release.list > > ** release.get > > ** release.annotate > > @@ -29,6 +37,16 @@ > > ** windows support: > > *** System class and Tar.php test under win > > *** xmlrpc extension compile fix > > + > > +* each class file could document its own dependencies, for example: > > + @dep php > 4.0.4pl1 > > + @dep ext pcre > > + @dep prog imagick > > + > > +* feature for installing "application" or "app" files in a web server > > + document root directory, set up virtual hosts etc. > > + > > +* registry files should say when the package was installed > > > > MEDIUM TERM: > > > > > > > > > > -- > > PEAR CVS Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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