Commit Graph

451 Commits

Author SHA1 Message Date
Tomas V.V.Cox
bc7bc41e6f switch to use the xml end tag function for correct handling
of multiline tag contents
2001-12-27 11:10:56 +00:00
Tomas V.V.Cox
a8f7a57e97 - Install files marked as "role=doc" in a central PEAR doc dir
(defaults to PHP_DATADIR/pear/doc/Package_name/)
- Store a new property of each installed file ['installed_as'] for
  easy uninstall
2001-12-26 03:57:47 +00:00
Tomas V.V.Cox
bda81affd2 added the <license> tag under <release> for the package.xml file 2001-12-23 21:32:09 +00:00
Stig Bakken
9c3b983a35 * add "pedantic" mode in infoFromTgzFile and skip some checks if not
pedantic
2001-12-22 04:42:12 +00:00
Tomas V.V.Cox
1a451a98ba Added dependencies check support for Installer 2001-12-17 21:11:50 +00:00
Tomas V.V.Cox
2816eafc06 ensure correct package names and versions in the xml parser 2001-12-17 21:10:11 +00:00
Tomas V.V.Cox
ed2bff2a7f - Added callCheckMethod() for making easy the integration with
the PEAR_installer class
- Reverted the logic of the returned value of the check methods.
  They will return false on no error or the error string on error
- Added signOperator() to output the representation of the operator
  with signs instead of letters ('ge' -> '>=')
- Other minor changes
2001-12-17 21:08:58 +00:00
Tomas V.V.Cox
a919c54de1 added support for <deps> and <dep> tags 2001-12-16 16:21:35 +00:00
Tomas V.V.Cox
e2a5cf3fcb use the System class for mkDirHier() and mkTempDir() 2001-12-16 15:14:00 +00:00
Stig Bakken
7ea3d57462 * update to new overload api 2001-12-14 07:47:41 +00:00
Stig Bakken
4adfb80edc * implemented upgrade 2001-12-12 01:30:56 +00:00
Stig Bakken
491a2f5219 * PEAR_Registry::updatePackage now takes an optional 2nd arg for
replacing package info instead of merging
2001-12-12 01:29:27 +00:00
Stig Bakken
64349569de * make do without overload function 2001-12-12 00:10:47 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Stig Bakken
131acf55f7 * added "register_only" option for install/uninstall 2001-12-11 08:39:01 +00:00
Stig Bakken
79f5dcf7d6 * now using ext/overload
# how to use:
#
# $remote = new PEAR_Remote;
# $remote->package_listAll();
# $remote->user_activate("johndoe");
#
# (when using overloading, "_" is replaced with "." before doing
#  the xmlrpc call)
2001-12-10 17:04:56 +00:00
Stig Bakken
b26e4a97c9 * PEAR_Registry::packageInfo now takes a second arg for returning a single
attribute
2001-12-10 17:01:32 +00:00
Stig Bakken
936923a3b6 * added fold marks, moved around some code and silenced some Archive_Tar
notices
2001-12-10 17:00:32 +00:00
Stig Bakken
2c96b5856f * renamed check methods to checkXxx
* completed the extension check method
* added checks for os, php version, programs and sapi backend
2001-12-10 16:59:17 +00:00
Stig Bakken
cd9f1f828e * fix phpdoc comments 2001-12-10 16:40:30 +00:00
Stig Bakken
b11d1eb440 * initial commit of PEAR method autoloader 2001-12-10 01:50:11 +00:00
Tomas V.V.Cox
4bffed7769 Rename Dependencie.php to Dependency.php 2001-12-02 16:29:37 +00:00
Tomas V.V.Cox
3898513fbd Class for checking dependencies 2001-12-02 00:44:02 +00:00
Tomas V.V.Cox
f4299a90e2 check for version for not building broken packages (thanks Markus) 2001-12-01 17:55:47 +00:00
Tomas V.V.Cox
15f0f8ae23 implemented "uninstall" command 2001-11-15 01:24:35 +00:00
Christian Stocker
fde1575ba2 checking if package.xml.gz exists, before checking if it's writeable 2001-11-14 09:22:00 +00:00
Stig Bakken
e6f95ee99b * rename files to .reg (not .inf) 2001-11-13 01:06:48 +00:00
Stig Bakken
79f0345166 * error message cleanup
* store registry object as property
2001-11-13 01:05:46 +00:00
Martin Jansen
13fb78bab1 * some minor improvements 2001-11-10 10:37:24 +00:00
Stig Bakken
61cad20c12 * store registry data in PEAR_INSTALL_DIR/.registry instead of /var/something 2001-11-07 10:43:04 +00:00
Stig Bakken
81b5aabb33 typo 2001-11-07 09:24:55 +00:00
Tomas V.V.Cox
16f8af514f E_ALL fixes 2001-11-06 00:22:18 +00:00
Christian Stocker
288871505b typo 2001-11-02 17:57:17 +00:00
Stig Bakken
8a7f7d5cae * pearweb xmlrpc layer now handles PEAR errors 2001-10-31 06:21:11 +00:00
Stig Bakken
b0a803d127 * update tests 2001-10-31 05:52:41 +00:00
Stig Bakken
f0df3f5f82 * added "pear info" and "pear show-config" commands
* "pear install" now using the package registry
2001-10-31 05:39:11 +00:00
Stig Bakken
3a97065f87 * disable case-folding in the xml parser (for consistency now that the
DTD is all lowercase)
2001-10-30 12:29:55 +00:00
Stig Bakken
9a8854b5b1 * improved error reporting in PEAR_Remote::call 2001-10-30 12:28:39 +00:00
Stig Bakken
ed03a30603 * added getKeys method 2001-10-30 12:27:58 +00:00
Stig Bakken
4fc273adda ws 2001-10-30 12:19:36 +00:00
Stig Bakken
7ab89b02c4 * started working on "pear list" command 2001-10-29 14:15:43 +00:00
Stig Bakken
b60aedc275 * PEAR_Registry: renamed "upgradePackage" to "updatePackage"
* added tests for PEAR_Config and PEAR_Registry
2001-10-29 12:17:37 +00:00
Stig Bakken
f8055473a4 * moved System.php out of Experimental/ 2001-10-29 12:15:53 +00:00
Stig Bakken
dc9fc4155e * typo 2001-10-29 07:21:08 +00:00
Stig Bakken
c62fdf8f11 * added listPackages
* made packageInfo param optional, if not specified returns info for
  all packages
2001-10-28 23:35:10 +00:00
Stig Bakken
fd42c6afba * nuked PEAR_Packlist class and added PEAR_Registry instead 2001-10-28 23:22:17 +00:00
Stig Bakken
cd0fb34562 * actually implement -s/-S options :-) 2001-10-27 07:52:12 +00:00
Stig Bakken
c278bfc448 * implemented "pear list-packages", the first sub-command using xmlrpc 2001-10-26 11:45:21 +00:00
Stig Bakken
f197cf3630 * PEAR_Config class to maintain system and per-user configuration for
PEAR installations
* PEAR_Remote class to communicate with the backend server (xmlrpc)
* change pear script's option parsing to "-d foo=bar" style
* added -c/-C (user/system config file) and -s/-S (store user/system config)
  options
2001-10-26 10:07:43 +00:00
Tomas V.V.Cox
692d30b7be fix a problem with the propagation of baseinstalldir and role 2001-10-10 18:42:23 +00:00
Tomas V.V.Cox
d557151ce7 more clean up/fixes 2001-10-09 02:56:33 +00:00
Tomas V.V.Cox
13682462c7 some clean up 2001-10-08 16:52:33 +00:00
Tomas V.V.Cox
c7239f2b00 more work on Windows support 2001-10-08 06:12:13 +00:00
Tomas V.V.Cox
5f5bbfd3f3 added mkTempDir to create temporal directories 2001-10-08 06:10:54 +00:00
Tomas V.V.Cox
fb487bc38d detect and report error 2001-10-08 03:31:14 +00:00
Tomas V.V.Cox
28f5a1e6e9 use Tar.php class and clean up some unused properties 2001-10-08 03:29:34 +00:00
Tomas V.V.Cox
5b0e540882 work on Windows support (use Tar class and System class) 2001-10-07 20:16:41 +00:00
Tomas V.V.Cox
b46e7d76b4 use the new System class for common file opperations 2001-10-07 20:14:11 +00:00
Tomas V.V.Cox
e3e28c8f59 extract only the package.xml file instead of all files 2001-09-29 00:38:24 +00:00
Tomas V.V.Cox
15ac0567f9 implemented infoFromTgzFile() 2001-09-28 00:55:16 +00:00
Tomas V.V.Cox
95d19651f3 don't want "-" in package names 2001-09-27 23:31:15 +00:00
Stig Bakken
f12896d23b * hopefully the only changes required for the initials->user rename 2001-09-04 03:34:59 +00:00
Stig Bakken
2ccffc5600 * fixes to make package.xml parsing case insensitive 2001-08-27 21:25:16 +00:00
Tomas V.V.Cox
9037bedb9e The "pear package" command will try to open "./package.xml" if no more
params are given.
2001-08-19 12:53:01 +00:00
Tomas V.V.Cox
df54bca0a0 better error hanlding 2001-08-19 12:37:51 +00:00
Tomas V.V.Cox
cf70755a05 maintain original file perms 2001-08-19 12:30:24 +00:00
Tomas V.V.Cox
a0bf4ac47d added support for the following tags in package.xml:
- <State> inside <Release> (package development state: 'alpha','beta','stable','snapshot')
- <Changelog> stores <Release> entries
- <Maintainers> stores multiple <Maintainer> entries
- <Role> inside <Maintainer> ('lead','developer','contributor','helper')
2001-08-18 14:40:25 +00:00
Tomas V.V.Cox
bafa98109c removed my debug code :) 2001-08-11 16:14:14 +00:00
Tomas V.V.Cox
9ca706e8ab don't show is_file() stat errors 2001-08-11 16:11:49 +00:00
Tomas V.V.Cox
88748bc7a8 added BaseInstall dir support 2001-08-01 13:24:55 +00:00
Tomas V.V.Cox
2c1af4d645 package() now returns the full path of the generated package also improved
windows support (if php getcwd() returns also the drive letter, please test it)
2001-07-31 13:36:54 +00:00
Christian Stocker
410dfbe6a4 moved from the Experimental dir. the basic things should work... 2001-07-30 15:54:28 +00:00
Tomas V.V.Cox
30ec364e49 move the package list handler methods to the new Packlist.php also removed
the unused code
2001-07-19 11:15:48 +00:00
Tomas V.V.Cox
e78a175fc0 This class will handle the pear packages database (it's experimental now) 2001-07-19 11:10:28 +00:00
Tomas V.V.Cox
0d629b854a added TODO and checks before try to open the package.xml file 2001-07-19 10:32:06 +00:00
Tomas V.V.Cox
9638928317 - Only decompress package once
- Allow relative directory package calls (for ex:
  pear install packs/Pear_DB-1.1.tgz)
2001-07-18 23:13:56 +00:00
Tomas V.V.Cox
65af9358cd - remove the xml parser code (use PEAR_Common::infoFromDescFile)
- added the new package.xml Dir tag support
- killed many bugs and warnings

(as it is quite usable yet, work is still in progress)
2001-07-18 17:29:09 +00:00
Tomas V.V.Cox
97c0042c04 - always write a the package definition file as 'package.xml' inside the package
- other clean-up's
2001-07-18 17:13:38 +00:00
Tomas V.V.Cox
073f9ec70f killed some warnings 2001-07-18 17:11:28 +00:00
Tomas V.V.Cox
bed51fa581 - Removed the xml parser code (use now PEAR_Common::infoFromDescriptionFile())
- Added the ability to build packages without the need of being in the same
  dir as the package.xml file (f.ex: pear package ./mypack/package.xml)
- Removed methods log() and mkdirHier() as they are now in Common.php
- More debug code and error checks
2001-07-17 19:21:55 +00:00
Tomas V.V.Cox
5cb96db143 moved methods log() and mkdirHier() from Packager/Installer to here 2001-07-17 19:13:40 +00:00
Tomas V.V.Cox
e3e8ae44c7 extend infoFromDescriptionFile() to:
- Handle the new FileList->Dir tag format (see
http://marc.theaimsgroup.com/?l=pear-dev&m=99071271521558&w=2)
- Attributes of Files can inherit from Dir
- Support for the experimental LibFile/LibName/Sources tags

other indents and fixes
2001-07-16 18:01:09 +00:00
Tomas V.V.Cox
d1d7432da4 addes more logging and security options 2001-07-07 00:25:39 +00:00
Tomas V.V.Cox
0fe40d53b0 whitespaces 2001-07-06 19:23:41 +00:00
Stig Bakken
7d52787a96 * missing fold marks 2001-05-28 06:31:03 +00:00
Stig Bakken
ae9da3a9c1 * typo 2001-05-27 09:40:58 +00:00
Tomas V.V.Cox
370f099492 - added error cheking and abort when no script install dir is set
- minor typos
2001-05-22 16:25:04 +00:00
Tomas V.V.Cox
ea8cd965fe Put the verbose mode to work again. Some other style. 2001-05-15 14:15:09 +00:00
Tomas V.V.Cox
1485283db2 white spaces and indenting 2001-05-15 14:03:04 +00:00
Stig Bakken
4d9660d3b9 * fixed PEAR_Common::infoFromDescriptionFile 2001-04-22 07:43:34 +00:00
Stig Bakken
2cf1b8d345 * expanded the following constants and made them available in PHP:
DEFAULT_INCLUDE_PATH
  PEAR_INSTALL_DIR
  PHP_EXTENSION_DIR
  PHP_BINDIR
  PHP_LIBDIR
  PHP_DATADIR
  PHP_SYSCONFDIR
  PHP_LOCALSTATEDIR
  PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
Stig Bakken
c78e847153 * update class doc-comment 2001-04-20 13:04:30 +00:00
Stig Bakken
90c1355a75 * PEAR_Installer un-broken again, it still doesn't update the
package list though
* better error handling in "pear" script
2001-04-17 02:33:45 +00:00
Stig Bakken
457333c1fd * implemented PEAR_Packager to make distribution packages. Currently only
runs on platforms with GNU tar installed
* the "pear" script now requires a command parameter (similar to cvs),
  for example "pear package Cache.xml"
* broke PEAR_Installer :-)
2001-04-17 01:17:59 +00:00
Stig Bakken
6792978aed * updated copyrights (thanks Colin)
* moved scripts to own directory (bug #7635)
2001-01-10 01:01:59 +00:00
Stig Bakken
3d158a845c * display a notice when downloading 2001-01-08 02:54:35 +00:00
Stig Bakken
c43cad2f40 * no need for this test file anymore 2001-01-08 02:48:35 +00:00
Stig Bakken
12d0b86803 * updated DB status
* updated the "pear" script, it can install basic packages now
2001-01-08 02:45:30 +00:00
Stig Bakken
def1424b12 @Added XML_Parser class in PEAR (Stig)
@Added "make test" target in pear/ and added some regression tests (Stig)
Also fixed a bug in the PEAR class that was discovered when testing :-)
2000-07-30 17:41:31 +00:00
Stig Bakken
fbc947f43f * generate pear scripts properly with configure 2000-07-24 23:55:34 +00:00
Stig Bakken
0f0f1cebcb * new class: PEAR - can be used as a base class for others.
* PEAR_Error moved into PEAR.php to reduce the number of files that are
  always included
* cleaned up the PEAR_Error API a bit and changed the two classes using it
* added PEAR_Installer - an administration class for installing packages
  and maintaining a "class/file cache"
2000-07-24 08:05:51 +00:00