Commit Graph

1490 Commits

Author SHA1 Message Date
Stig Bakken
0d6a49f48e * add HTTP package (signed) 2002-07-09 11:24:29 +00:00
Stig Bakken
5aab8b2b8b * tolerate $args being empty 2002-07-09 10:52:25 +00:00
Stig Bakken
d90cada542 * tiniest optimization 2002-07-09 10:52:04 +00:00
Stig Bakken
0a6d81b56e * typo 2002-07-09 10:51:41 +00:00
Stig Bakken
b85f40f079 * added "pear sign" command 2002-07-07 21:12:40 +00:00
Stig Bakken
24909111fc * use System::mktemp
* check if an install is about to overwrite existing files belonging
  to other packages, bail out if not in "force" mode
2002-07-07 21:10:29 +00:00
Stig Bakken
6e0745b57a * don't set include path if running 'pear.in' without substitutions
made by the installer
* sort command names in help output
2002-07-07 21:01:10 +00:00
Stig Bakken
81e5b17f91 * made rebuildFileMap method public, added caching and checkFileMap method 2002-07-07 20:48:54 +00:00
Shane Caraveo
8619108154 Let 'pear build' work on windows for building pecl extensions.
A few notes:
Currently only supports release builds, and of course, requires msdev!
pecl packages must have package.xml and xxx.dsp files for this to work
the package name in package.xml must match the name of the dsp file, so
package iisfunc must have dsp iisfunc.dsp
2002-07-07 20:47:57 +00:00
Stig Bakken
87f97ba5c9 * use System::mktemp rather than PEAR_Common::mkTempDir 2002-07-07 20:42:08 +00:00
Stig Bakken
38a56a51cc * silence warning 2002-07-07 20:41:20 +00:00
Christian Dickmann
d04c8495d3 add local XMLRPC cache 2002-07-06 14:44:05 +00:00
Stig Bakken
6b4707320d * define PEAR_ZE2 when running with Zend Engine 2 2002-07-05 01:52:09 +00:00
Martin Jansen
1b1d5da907 * Remove http:// from the proxy server string.
Patch by: "michiel bakker" <michiel_bakker@hotmail.com>
2002-07-04 20:28:56 +00:00
foobar
bb0d7d6e31 - Let's be tad more verbose what's happening during 'make install' 2002-07-03 22:12:13 +00:00
Christian Dickmann
a6783f8070 make 'remote-info' use package.info. add deps to 'list-all' 2002-07-02 13:04:01 +00:00
Tomas V.V.Cox
ba7bdbdb65 change the include_path setting to be in the php space instead
of doing in the interpreter line (seems to break FreeBSD)
2002-06-25 13:45:29 +00:00
Martin Jansen
2fec25ad73 * Rephrase help text. 2002-06-24 16:03:45 +00:00
Stig Bakken
7914985b1a * typo 2002-06-21 13:11:04 +00:00
Stig Bakken
0f4ccfaa27 * bending over backwards to find sensible defaults 2002-06-21 06:08:54 +00:00
Tomas V.V.Cox
77acb22bba - Force params to version_compare() to be strings, otherwise some
comparations will fail (ex. 0.9 will be equal to 0.90)
- Other minor cleanup's
2002-06-19 23:38:59 +00:00
Tomas V.V.Cox
fa2ee37313 Do NOT allow install packages with errors in its description file 2002-06-19 22:51:29 +00:00
Tomas V.V.Cox
455f7bc746 "Release notes"++ 2002-06-18 08:41:39 +00:00
Tomas V.V.Cox
d2b435eb08 Dropped case insentive ext search in PEAR::loadExtension() 2002-06-17 14:35:12 +00:00
Tomas V.V.Cox
4211d0e590 Typo in the folding mark 2002-06-17 14:04:01 +00:00
Stig Bakken
271c2526df * php-4.2.1-installer.exe for Windows is installed in c:\php by
default, but it has PHP_SYSCONFDIR set to c:\php4.  workaround.
2002-06-17 13:56:38 +00:00
Tomas V.V.Cox
80361edcb6 Use the new PEAR::loadExtension() in checkExtension() instead
of the "hack"
2002-06-17 13:50:33 +00:00
Tomas V.V.Cox
87ddd96027 Added PEAR::loadExtension($ext) - OS independant PHP extension load
# PEAR developers, please use this function if you need to check or
# load an extension.
2002-06-17 13:39:29 +00:00
Tomas V.V.Cox
9e67012d74 trailing ws 2002-06-17 13:32:42 +00:00
Stig Bakken
97fd0acc14 * doh 2002-06-17 10:58:34 +00:00
Alan Knowles
c904e22ade Fixing for the coding standard :) 2002-06-17 10:52:21 +00:00
Stig Bakken
2ae8219d44 * add xmlrpc request to debug output (verbosity level 4+) 2002-06-17 10:26:55 +00:00
Alan Knowles
19b63d5f87 Added Dependancy check on XML - previously pear installer failed silently 2002-06-17 04:49:14 +00:00
Tomas V.V.Cox
19bfe8a3e1 Install the pear command under the bin_dir setting intead of the fixed
PHP_BINDIR
2002-06-16 14:30:14 +00:00
Stig Bakken
c55ce8b07f * set include_path when running "pear" 2002-06-16 05:43:48 +00:00
Tomas V.V.Cox
9baec5623d - Fix issue with the DIRECTORY_SEPARATOR, did make the install of
XML_image2svg fail
- TODO++ and others minor stuff
2002-06-14 23:18:04 +00:00
Stig Bakken
972edb2795 * if verbosity config is > 3, display xmlrpc response
* another bugfix
2002-06-14 22:25:37 +00:00
Alan Knowles
4f1531b163 remote list and remote listall, can now list non-stable packages if you set prefered_state to something else 2002-06-14 15:03:29 +00:00
Alan Knowles
78fffcce0e Fixed XML RPC sending of args - lets try and get the right tag :) 2002-06-14 14:55:28 +00:00
Tomas V.V.Cox
cf4002fd58 Change a little the dep db structure
Comment the code and some clean up's
2002-06-13 15:10:42 +00:00
Tomas V.V.Cox
3507f15519 More work on the dependencies DB (still not tested/used) 2002-06-13 13:41:12 +00:00
Stig Bakken
efbb0b125c * comment typos 2002-06-12 21:23:22 +00:00
Stig Bakken
16a112094b * set working version to 0.91-dev 2002-06-12 21:19:51 +00:00
Stig Bakken
ab9159719b * minor cleanup 2002-06-12 21:17:10 +00:00
Tomas V.V.Cox
d2b830ff4a Attempt to make pear.bat work better under Windows 2002-06-12 16:31:53 +00:00
Tomas V.V.Cox
4bb9c66fee Commented out old unused stuff
# I'm not familiar with the 'make' syntax, please tell me if
# something is wrong
2002-06-09 18:34:04 +00:00
Tomas V.V.Cox
613496c4ef Moved to pear/Archive_Tar/scripts 2002-06-09 18:25:40 +00:00
Tomas V.V.Cox
c67c595645 if (!dl(php_gtk)) die("Unable to load the php_gtk extension\n"); 2002-06-09 18:18:01 +00:00
Tomas V.V.Cox
8c8599222e Beautify config-show output, some wrap changes and fix small
issue with _tableRow() with line counting
2002-06-09 18:12:59 +00:00
Tomas V.V.Cox
0d5d98a6d8 displayLine() -> outputData() 2002-06-09 16:29:50 +00:00
Tomas V.V.Cox
7647781340 - outputData($data, $command)
+ outputData($data, $command = '_default')
2002-06-09 16:28:46 +00:00
Christian Dickmann
3dd47bc651 add modes to list-all. fix a mergerbug 2002-06-08 18:44:34 +00:00
Tomas V.V.Cox
2ed7358250 Hopefully fixed a couple of problems with destination paths:
- Bug #17529
- In Windows getting <pear>\/\<file>
- Documentation under <doc_dir>/Package/Package/

# Please test it and report possible problem
2002-06-08 17:34:46 +00:00
Tomas V.V.Cox
f33c5896ac Experimental dependencies database handling functions
(not yet in production)
2002-06-07 18:07:38 +00:00
Tomas V.V.Cox
fcd6d2b5cd Beautify remote-info 2002-06-07 15:06:25 +00:00
Tomas V.V.Cox
f3673c8798 - Reapplied the "treat umask as octal in "config-set"
command" Stig's patch
- Ported the config-help command to new UI API
2002-06-07 14:50:39 +00:00
Tomas V.V.Cox
8f21117efb more wrapping cases 2002-06-07 14:48:01 +00:00
Tomas V.V.Cox
ebea2ed5cf Remove debug code 2002-06-07 10:22:00 +00:00
Tomas V.V.Cox
eeb7f9dafc More info output retouchs 2002-06-07 10:20:41 +00:00
Tomas V.V.Cox
b5bf0fb154 Fix some minor issues with the parsing 2002-06-07 10:18:59 +00:00
Stig Bakken
2bc921c60a * get rid of pearize 2002-06-07 10:17:25 +00:00
Tomas V.V.Cox
c083784023 Make "info" full human friendly (in deps list and lastmodified) 2002-06-07 08:45:00 +00:00
Tomas V.V.Cox
9f46d24922 Make $_deps_rel_trans and $_deps_type_trans globally avaible:
moved from Command/Package.php -> Command/Common.php
2002-06-07 08:43:45 +00:00
Tomas V.V.Cox
149dcec76f Be nicer with the help 2002-06-07 08:05:48 +00:00
Tomas V.V.Cox
7770b625ba ws 2002-06-07 08:04:05 +00:00
Tomas V.V.Cox
1dac8c275b Put back the "info" command in its full state:
"Displays information about a package. The package argument may be a
local package file, an URL to a package file, or the name of an
installed package."
Command "package-info" depreciated (again)
2002-06-07 07:54:28 +00:00
Stig Bakken
678456cf0f * prepare 0.90 2002-06-06 11:31:07 +00:00
Stig Bakken
d1826b4287 * add "nobuild" option to installer (-B or --nobuild option to CLI frontend) 2002-06-06 10:51:26 +00:00
Stig Bakken
d8c07cc63d * remove debug output 2002-06-06 10:37:13 +00:00
Stig Bakken
cf81f686e9 * when building, look for "package-version" subdirectory, needed for
building stuff straight from tarballs
2002-06-06 10:35:16 +00:00
Stig Bakken
9161f8a32e * add PEAR_COMMON_PACKAGE_NAME_PREG constant 2002-06-06 10:16:42 +00:00
Stig Bakken
3c587c0aad * make displayFatalError work again 2002-06-06 10:16:01 +00:00
Tomas V.V.Cox
aa7d447d25 Forgot that one 2002-06-06 09:05:04 +00:00
Tomas V.V.Cox
8447d094c6 Wrap table contents
# Sorry could't wait for that commit :-)
2002-06-06 08:50:31 +00:00
Tomas V.V.Cox
41e7696ec9 Implemented "pear info <Installed Package>" command
# Stig, why I'm sure that you already have implemented this
# command? Have to stop with my LSD therapy
2002-06-06 07:25:07 +00:00
Tomas V.V.Cox
ec9c0bf0a7 Split the doPackageInfo() in doPackageInfo() and _infoForDisplaying()
(this last one can be statically called and is used also from
the "info" command)
2002-06-06 07:22:23 +00:00
Tomas V.V.Cox
eb54d687ad package.xml file for the PEAR Mail package 2002-06-06 06:43:19 +00:00
Tomas V.V.Cox
fda17098b1 That will really avoid PHP warnings 2002-06-06 06:40:05 +00:00
Tomas V.V.Cox
1971e52e33 Fix package command
# can't beleive you don't test commits :-)
2002-06-06 06:35:12 +00:00
Stig Bakken
4317a5c7a9 * sort package names in "pear list" 2002-06-04 15:25:23 +00:00
Stig Bakken
b8ec647fc5 * fix bug that was re-introduced during merge 2002-06-02 23:59:41 +00:00
Christian Dickmann
ee44ad4f5b make 'pear remote-info' work with CLI 2002-06-02 20:24:50 +00:00
Christian Dickmann
19c946cce2 make 'pear search' work with CLI. fix a typo 2002-06-02 20:13:50 +00:00
Christian Dickmann
0220472176 silence unlink() and rmdir(). fix a bug where wasn't set due to wrong ini setting 2002-06-02 14:27:15 +00:00
Stig Bakken
f111dff665 * merge NEW_UI_API branch 2002-06-02 13:07:19 +00:00
Tomas V.V.Cox
3a32f51b11 fread already detects EOF 2002-05-31 18:49:47 +00:00
Tomas V.V.Cox
5d43ef2cd0 Be able to handle strings as well as arrays in _multipleToStruct() 2002-05-31 18:12:56 +00:00
Tomas V.V.Cox
5cb633933f - Make mkTemp() automatically removed temporary created files
or dirs at script shutdown time
- Remove unnecesarry PEAR inheritance
- Some PHPDoc fixes
2002-05-31 17:47:19 +00:00
Jan Lehnardt
57adfb0dec - add testcase for PEAR::delExpect() 2002-05-30 09:39:52 +00:00
Jan Lehnardt
5ec88a3b73 - minor improvement of readability,
#thanks richy ;)
2002-05-29 21:55:52 +00:00
Jan Lehnardt
998ef91cad - added delExpect() API method. It allows to unset one or more expected
- error codes.
 - requires _checkDelExpect() (private) which I added as well.
 - inspired by chregu (PHP-Deluxe, page 75)
2002-05-29 21:41:27 +00:00
Stig Bakken
43beb1deda * 0.11 release coming up 2002-05-28 01:22:41 +00:00
Stig Bakken
a0b0ad161f * drop package-info command (deprecated by "info") 2002-05-28 01:21:47 +00:00
Stig Bakken
1ed83e4970 * update test 2002-05-28 01:21:26 +00:00
Stig Bakken
ecf93ec1fd * update 0.11 release notes
* move build logic into PEAR_Builder
2002-05-28 01:01:43 +00:00
Stig Bakken
599cede43e * disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting 2002-05-28 00:45:19 +00:00
Stig Bakken
0adf7e2530 * sync up 2002-05-28 00:35:16 +00:00
Stig Bakken
52a00c9a0c * disable magic_quotes_runtime (what a broken concept!!) while
reading config files
2002-05-28 00:31:04 +00:00
Stig Bakken
819dd35055 * fix some errors/warnings
* install data and test files now
2002-05-28 00:11:41 +00:00
Stig Bakken
245ca5aa7c * added data_dir and test_dir 2002-05-28 00:01:19 +00:00
Stig Bakken
926dcdc854 * moved the --without-pear compat defines to the right place 2002-05-27 22:28:26 +00:00
Stig Bakken
076202e02c * change root for documentation files to <peardir>/docs 2002-05-27 22:27:40 +00:00
Stig Bakken
731f6a2a97 * treat umask as octal in "config-set" command 2002-05-27 21:59:19 +00:00
Stig Bakken
216986ff42 * use new Archive_Tar gzip autodetection 2002-05-27 21:36:28 +00:00
Stig Bakken
1794f9c922 * prepare 0.9 release 2002-05-27 20:57:01 +00:00
Stig Bakken
94ca53c871 * fixed a bug in PEAR_Config::set() that broke validation of "set" parameters 2002-05-27 19:37:17 +00:00
Stig Bakken
3337c2d307 * better gzip detection (magic cookie) 2002-05-27 19:28:09 +00:00
Stig Bakken
a618f2cd8b * fixes for php without zlib 2002-05-27 12:45:03 +00:00
Stig Bakken
f3c5fea7a4 * make Archive_Tar auto-detect whether zlib is needed based on file
extension (.tar -> no zlib)
2002-05-27 11:59:09 +00:00
Stig Bakken
e59a6c28d5 * update version 2002-05-27 01:22:59 +00:00
Stig Bakken
622c684164 * first shot at "pear build" command for building extensions from C code 2002-05-27 01:20:10 +00:00
Stig Bakken
5f7cdc85da * "info" command 2002-05-27 00:22:01 +00:00
Stig Bakken
cb097ffded * added config-help command 2002-05-27 00:21:36 +00:00
Stig Bakken
17e6e108ac * drop "any" as a valid preferred_state 2002-05-27 00:20:03 +00:00
Stig Bakken
d4eb209a6a * more verbose docs for "verbose" :) 2002-05-27 00:16:40 +00:00
Stig Bakken
d0cfe03194 * un-indent description too 2002-05-26 23:38:22 +00:00
Stig Bakken
0f26462418 * try being smart about de-indenting release notes from the xml 2002-05-26 23:33:01 +00:00
Stig Bakken
6e462e2880 * PEAR_Frontend_Web is coming! 2002-05-26 22:11:17 +00:00
Tomas V.V.Cox
25b78bc5bd Added "pear -V" (show version information) 2002-05-26 19:42:13 +00:00
Stig Bakken
d3926c1e7e * another help fix 2002-05-26 19:19:34 +00:00
Tomas V.V.Cox
8cd936095b Make the error handling work again since the new internal command
structure
2002-05-26 19:08:21 +00:00
Martin Jansen
e75fe514a1 * Add /me has helper. 2002-05-26 18:06:04 +00:00
Stig Bakken
5819f202f9 * bold column headings 2002-05-26 17:48:40 +00:00
Stig Bakken
457af88cf4 ^t 2002-05-26 17:46:21 +00:00
Tomas V.V.Cox
f2f69974e9 "Help" fixes 2002-05-26 17:37:52 +00:00
Stig Bakken
177872f0a5 * add package.dtd to the distribution 2002-05-26 12:56:11 +00:00
Stig Bakken
7168cb0567 * roll out 0.10 2002-05-26 12:54:19 +00:00
Stig Bakken
c4e4b05c05 * focus on the present 2002-05-26 12:54:08 +00:00
Stig Bakken
a12d71be8a * add @nodep stuff here too 2002-05-26 12:53:26 +00:00
Stig Bakken
d6881ebba1 * be nice to PEAR_Common::detectDepdencencies() 2002-05-26 12:52:16 +00:00
Stig Bakken
e71d497bef * more work on the dependency detector 2002-05-26 12:51:32 +00:00
Stig Bakken
f1882b9fc5 * Console_Getopt POSIX fix 2002-05-26 12:51:10 +00:00
Stig Bakken
ea14cadea2 * phpdoc fixes (un-break the broken) 2002-05-26 12:50:36 +00:00
Stig Bakken
39ba363638 * POSIX getopt compatibility support (first argv element is the command) 2002-05-26 12:13:47 +00:00
Stig Bakken
6b2d3bba17 * tidy output a bit 2002-05-26 12:13:05 +00:00
Stig Bakken
7132d9e56f * cleaned up error handling in _installFile 2002-05-26 11:46:11 +00:00
Martin Jansen
cbdcb20b37 * Make rel_trans from doPackageInfo globally available.
* Add command "package-dependencies" (shortcut "pd") to list the
  dependencies of a package.
2002-05-25 09:03:19 +00:00
Stig Bakken
0aa275f3ae * typo caught by PEAR_Common::detectDependencies :) 2002-05-25 00:43:58 +00:00
Tomas V.V.Cox
6ec69deaf6 TODO++
Check dependencies break on package uninstall (when no force given)
2002-05-23 20:42:33 +00:00
Tomas V.V.Cox
5ab1f810b9 Fix package dependency check (reported by Rasmus) 2002-05-23 20:37:58 +00:00
Tomas V.V.Cox
613f08a231 Trigger an error if the run-test.php file is not found
Make the run-tests pear cmd run with the CGI SAPI
2002-05-22 12:44:21 +00:00
Tomas V.V.Cox
ae126450c9 Test first if the package exists before comparing the version
(fix the version_compare() segfault)
2002-05-22 01:23:12 +00:00
Tomas V.V.Cox
4d10d79c3e Make pear -vv XXX set the XML_RPC debug flag 2002-05-22 00:15:27 +00:00
Tomas V.V.Cox
743ad31884 files that are not installed should be removed from the
registered file list (TODO--)
2002-05-21 09:19:46 +00:00
Stig Bakken
d8d42fcc59 * show installed_as instead of a "calculated" path for installed packages 2002-05-21 07:18:48 +00:00
Stig Bakken
86a043d250 * add TODO comment 2002-05-21 07:16:35 +00:00
Stig Bakken
e7ccd22d5e * disable wrapping for now 2002-05-21 07:00:45 +00:00
Tomas V.V.Cox
5700c0d421 Some minor error verbosity updates 2002-05-21 02:31:23 +00:00
Tomas V.V.Cox
39b4baccbe doListRemote -> doRemoteList 2002-05-21 02:28:08 +00:00
Tomas V.V.Cox
2133d0f4ac Make the installation of a package fail when _installFile
fails and "force" is not set
2002-05-21 02:11:42 +00:00
Stig Bakken
6eb5ad0f53 * list command no longer displays test and data files when listing
installed files
2002-05-21 02:04:03 +00:00
Stig Bakken
c8ea5b26d2 * package-list command no longer needed ("list" does the same thing and
more)
2002-05-21 01:44:06 +00:00
Stig Bakken
cea551cf93 * rename shell-test shortcut to st (was stest) 2002-05-21 01:40:35 +00:00
Stig Bakken
dd6b25cfcb * added more shortcuts 2002-05-21 01:38:50 +00:00
Stig Bakken
7ecfacedad * implemented shortcuts ("pv" for "package-validate" etc.)
do "pear help shortcuts" to see what shortcuts exist
* renamed "list-installed" command to "list" and made it able to
  list the contents of installed packages as well as tar/tgz/xml files
* added some more/better command docs
* fixed up the synopsis part in the help output
* display option parameters (--foo=bar, where bar is specified in
  'shortarg' as for example 'f:bar')
* renamed list-remote-packages to list-remote
* renamed remote-package-info to remote-info
2002-05-21 01:27:53 +00:00
Stig Bakken
f208968c9f * make infoFromAny actually work :) 2002-05-21 01:20:51 +00:00
Stig Bakken
3cb61284ad * better wording 2002-05-21 01:20:24 +00:00
Stig Bakken
d24f7420d0 * disable debug in XML_RPC fallback 2002-05-20 22:29:52 +00:00
Stig Bakken
6553e94791 * new command setup 2002-05-20 11:37:33 +00:00
Stig Bakken
324c342527 * upgrade bundled XML_RPC package to 1.0.3 2002-05-20 11:35:33 +00:00
Stig Bakken
344ba505b9 * new installer rule that does not depend on bash 2002-05-20 10:46:01 +00:00
Stig Bakken
2034c61557 * _infoFromAny goes public! 2002-05-20 10:45:23 +00:00
Stig Bakken
840b5f8e67 * some verbosity changes: 0 - only errors, 1 - status report when the
install is done, 2 - show each operation, 3 - show file operations
2002-05-20 10:44:53 +00:00
Stig Bakken
9cd470d160 * no output in verbosity level 0 2002-05-20 10:43:29 +00:00
Stig Bakken
5c7623ee86 * added PEAR_Config::removeLayer() 2002-05-20 10:42:47 +00:00
Stig Bakken
a31e8b7373 * remove getCommands() from here
* added options to "pear cvstag": -q -Q -d -F
2002-05-20 10:31:12 +00:00
Stig Bakken
454a31121c * support multiple -v and -q options 2002-05-20 10:27:16 +00:00
Stig Bakken
b1bcf9d794 * forgot to update the release date 2002-05-20 10:21:01 +00:00
Stig Bakken
fa6d66d6d2 * fix fix 2002-05-20 09:54:37 +00:00
Stig Bakken
9178695c37 * merge 0.4 files from /pear/Archive_Tar 2002-05-20 09:05:52 +00:00
Stig Bakken
89fb60f049 * prepare 0.10 2002-05-20 08:58:46 +00:00
Stig Bakken
845e6f86bc * remove run() from this class 2002-05-20 08:56:00 +00:00
Tomas V.V.Cox
3b97fe3657 Added missing key 'doc' for -Z help 2002-05-20 01:22:00 +00:00
Tomas V.V.Cox
3716f28350 Fix small bug making the baseinstalldir attrib persist 2002-05-20 01:17:09 +00:00
Stig Bakken
7542066eef * no need for getCommands() here 2002-05-20 00:17:43 +00:00
Stig Bakken
c2d1d3fc82 * new command setup 2002-05-20 00:15:52 +00:00
Stig Bakken
9fd5019fed * typo fixes, wrapping 2002-05-20 00:11:15 +00:00
Stig Bakken
71c7fe0d8f * install pear.bat on Windows only 2002-05-19 21:45:45 +00:00
foobar
14f05fbbc7 Make this actually work somewhat better.. 2002-05-19 21:39:59 +00:00
Stig Bakken
f19b566a40 * compat fix 2002-05-19 16:32:18 +00:00
Tomas V.V.Cox
93b603861e Put "pear help options" working again 2002-05-19 15:50:36 +00:00
Tomas V.V.Cox
26493531d4 Put "pear help command" working again 2002-05-19 15:44:47 +00:00
Stig Bakken
6dce2376da * new command setup 2002-05-19 06:48:40 +00:00
Stig Bakken
6eee62645b * support platform-specific files 2002-05-19 06:19:26 +00:00
Stig Bakken
d7ef0b964b * take uname as optional constructor parameter 2002-05-19 06:13:07 +00:00
Tomas V.V.Cox
fd5b0fb50a make downloadHttp() detect HTTP errors 2002-05-15 11:23:01 +00:00
Tomas V.V.Cox
d9f4162ab9 Try to create the dir where the conf file resides before trying
to write to it
2002-05-14 17:59:41 +00:00
Tomas V.V.Cox
5ea5758bcf Add "\n" after the error in usage() 2002-05-14 17:58:44 +00:00
Stig Bakken
ce2b2b76a0 * convert to new command setup 2002-05-14 12:46:17 +00:00
Stig Bakken
b45e7182a0 * typo 2002-05-14 12:34:49 +00:00
Stig Bakken
a14aeac0f8 * fall back to XML_RPC if xmlrpc-epi is not loaded
# still buggy
2002-05-14 01:51:06 +00:00
Stig Bakken
95ab15f0a5 * add command definitions, split run() into one method for each command 2002-05-14 01:49:56 +00:00
Stig Bakken
677cda3ea4 * no need for getHelp() here anymore 2002-05-14 01:49:18 +00:00
Stig Bakken
1da524b016 * moved get{Help,Commands,Options} here 2002-05-14 01:48:20 +00:00
Stig Bakken
ed16e64498 * moved the {config xxx} help message substitution to
PEAR_Command_Common::getHelp
2002-05-14 01:45:20 +00:00
Andrei Zmievski
1668570e4d Changing email address. 2002-05-13 17:28:38 +00:00
Stig Bakken
66605d218d * fix option parsing 2002-05-12 23:21:30 +00:00
Stig Bakken
3bc12ac242 * refactored the command/options code:
- now each command class should define a "commands" property with
    documentation, option specs etc.
  - both long and short options are now supported
  - after recent changes to Console_Getopt, you may now have options
    to commands even though the same option is also valid for the pear
    command itself
  - less CLI-centric, better suited to Gtk and Web frontends
2002-05-12 21:09:04 +00:00
Tomas V.V.Cox
94a3659642 The command name is now the first arg not the second 2002-05-12 16:42:50 +00:00
Tomas V.V.Cox
625b9c5f88 Add "r" in cmd help 2002-05-12 16:31:30 +00:00
Tomas V.V.Cox
1bf2abc2f5 The first entry in argv is the command name, so Getopt will stop
parsing more args
# Stig be carefull, your change to Getopt breaks BC
2002-05-12 16:30:26 +00:00
Stig Bakken
d0fc0d4c08 * fix up package dependency check 2002-05-12 14:53:54 +00:00
Tomas V.V.Cox
3a838c7737 Make <dep type="pkg" rel="has"> avaible 2002-05-12 14:42:03 +00:00
Stig Bakken
bd77586b34 * fix description 2002-05-12 13:14:24 +00:00
Tomas V.V.Cox
0e9d6c4b42 Vincent is not involved in this class :-) 2002-05-12 11:27:39 +00:00
Stig Bakken
ebe26ec36c * Try again: fixed Console_Getopt::getopt so it does not steal options
after the first non-option argument.  Added test.
2002-05-12 07:13:49 +00:00
Stig Bakken
f0a3e7262e * updated config key names 2002-05-12 07:09:25 +00:00
Stig Bakken
201ec25f42 * exclude _lastmodified registry attrib from tests 2002-05-12 07:08:25 +00:00
Stig Bakken
d9704c7134 * use PEAR::raiseError 2002-05-11 16:39:39 +00:00
Stig Bakken
aa1f45c964 * install Archive_Tar and Console_Getopt too 2002-05-11 01:35:23 +00:00
Stig Bakken
b4bb7c10f9 * add package descriptions for Archive_Tar and Console_Getopt 2002-05-11 01:28:14 +00:00
Stig Bakken
42a0e2763f * add dependencies 2002-05-11 01:27:53 +00:00
Martin Jansen
caa2dd2ce2 * package-pear.xml has been renamed to package-PEAR.xml. 2002-05-10 05:40:39 +00:00
Stig Bakken
ae7da10f0e * remove package-db.xml
* rename package-pear.xml to package-PEAR.xml (generic format is
  package-PKGNAME.xml)
2002-05-09 21:13:56 +00:00
Vincent Blavet
59071dc42e * Better handling of Windows paths (\php\any_thing or c:\php\any_thing)
* Remember that inside the archive path are all the time in unix format /php/any_thing
* When necessary, '\' are replaced by '/' and 'c:' are removed
* Synchro with cvs:pear/Archive_Tar/Tar.php version 1.20
2002-05-09 13:00:12 +00:00
Stig Bakken
27f5bfc848 * add some packages to bundle with PHP 2002-05-09 12:46:21 +00:00
Stig Bakken
fddbd15554 * add "pear run-tests" command 2002-05-09 12:45:29 +00:00
Stig Bakken
ed4ffb695b * use PEAR installer to install stuff (won't overwrite if newer versions
of packages already are installed)
2002-05-09 12:45:02 +00:00
Stig Bakken
123ae9bcdd * permanently moving DB to /pear 2002-05-09 12:29:25 +00:00
Derick Rethans
24e96213ff - Fix phpize 2002-05-09 12:27:20 +00:00
Derick Rethans
f0d18c63be - Dump API NOs 2002-05-09 12:11:57 +00:00
foobar
1d4753755d Fix 'php-config --version' 2002-05-09 12:06:44 +00:00
Stig Bakken
dad70be69c * show "update ok" after updates 2002-05-09 06:49:12 +00:00
Stig Bakken
2225be36d6 * install the old-fashioned way for just a bit longer 2002-05-09 02:32:18 +00:00
Stig Bakken
b14c2f9185 * add -G option to "pear" for php-gtk frontend
* added Gtk stub (only creates window right now)
* added command descriptions
2002-05-09 02:31:37 +00:00
Stig Bakken
bd4f1f90d0 * switched from static to instance model
* added matching method with glob support, some examples:
    $os->matchSignature('linux');
    $os->matchSignature('linux-2.4*);
    $os->matchSignature('linux-*-i?86');
2002-05-03 13:13:51 +00:00
Stig Bakken
9679267b88 * fixed autoconf vs. pear installer replacement issue in scripts/pear.in
(pear installer now substitutes "@prefix@/bin" to bin_dir ;-)
* added skeleton for OS_Guess class
2002-05-03 05:42:55 +00:00
Stig Bakken
1a74e43001 * apply umask when installing files 2002-05-03 00:01:54 +00:00
Stig Bakken
f6ad0eee1d * add umask config value 2002-05-02 23:56:44 +00:00
Tomas V.V.Cox
fec42ddeee Install pear.bat
# Please Windows hackers test the pear installer support!
2002-05-02 10:15:47 +00:00
Tomas V.V.Cox
f024d6b709 untabify 2002-05-02 10:14:01 +00:00
Jon Parise
b2579d3480 Revert the previous commit (revision 1.40).
@bindir@ ended up becoming '${exec_prefix}' (literally) on my system
(FreeBSD 4.5), thus producing a broken shebang line.

@prefix@ works fine for me here.  If @bindir@ is indeed preferred, the
substitution problem noted above needs to be resolved before the change
is reapplied.
2002-05-02 05:36:21 +00:00
Stig Bakken
18936b9b61 * version will be 0.10 2002-04-29 06:41:42 +00:00
Stig Bakken
dd3423434a * slight cleanup 2002-04-29 06:38:07 +00:00
Stig Bakken
7db1420fa6 * call the right parent constructor 2002-04-29 06:29:07 +00:00
Stig Bakken
ac53945e9b * PEAR_Installer constructor now expects only the UI object 2002-04-29 06:24:37 +00:00
Stig Bakken
1ca41f7f49 * PEAR_Common::downloadHttp no longer wants a config object 2002-04-29 06:23:51 +00:00
Stig Bakken
c5d6a0c524 * always set $this->config (use PEAR_Config::singleton)
* rename setFrontend to setFrontendObject
* add validPackageName method
* added downloadHttp callback types setup, connfailed and writefailed
* no more passing config objects around
2002-04-29 06:23:05 +00:00
Stig Bakken
0252c2bb39 * use the downloadHttp method w/callback 2002-04-29 06:20:42 +00:00
Stig Bakken
c6fe490093 * forgot script element in release contents 2002-04-28 07:58:41 +00:00
Stig Bakken
123a668fb5 * package.dtd: version 1.0b7
- added <provides> element
  - added <script> element
2002-04-28 07:52:00 +00:00
Stig Bakken
eade67d6ab * implemented "list-remote-packages" command 2002-04-28 07:35:30 +00:00
Stig Bakken
e08fb72a0c * implemented stub for XML_RPC fallback if xmlrpc-epi is not installed 2002-04-28 07:34:46 +00:00
Stig Bakken
03a52cd97c * fix warning 2002-04-25 09:13:55 +00:00
Stig Bakken
3460eedfca * add "_lastmodified" timestamp to registry files (don't trust filemtime) 2002-04-24 00:48:06 +00:00
Stig Bakken
1ac4caa680 0.9.1 release notes ++ 2002-04-23 23:37:07 +00:00
Stig Bakken
31d02d2bb8 * make validator work again 2002-04-23 23:36:54 +00:00
Stig Bakken
da684c5a00 * roll out 1.2 release 2002-04-23 23:29:16 +00:00
Stig Bakken
722cd4fa17 * use PEAR_Common::downloadHttp() 2002-04-23 07:01:45 +00:00
Stig Bakken
e22ee6a085 * downloadHttp: pass the total number of bytes downloaded as parameter
to the 'done' callback
2002-04-23 06:49:10 +00:00
Stig Bakken
124c63b333 * moved these "class variables" to global variables and added static methods for getting
them: maintainer_roles, release_states, dependency_types, dependency_relations,
  file_roles, replacement_types
* added downloadHttp method with status callback support (can be used by installers
  to show download progress)
2002-04-23 06:28:44 +00:00
Martin Jansen
eb3c6e7a18 * Due to the recent changes in the installer stuff, the webinstaller
is not supported at the moment.
2002-04-22 09:11:06 +00:00
Stig Bakken
88024105c9 * more uniform "level 2 debug messages"
* don't add dirname(file) to install path if install-as attribute is set
2002-04-21 11:46:41 +00:00
Stig Bakken
8a41f93fcc * set version to 0.9.1-dev 2002-04-21 10:17:13 +00:00
Stig Bakken
40878cbe0e * PHP_PREFIX constant is not defined, use bin_dir pear config instead 2002-04-21 10:16:32 +00:00
Martin Jansen
dc8c2c9a6c * Remove package directory if empty during uninstall process
* Don't baseinstalldir for documentation.
2002-04-21 06:17:53 +00:00
Tomas V.V.Cox
13f7ec4374 Bail on no HTTP.php present in the system
Let "pear download" act ala wget
2002-04-21 01:34:49 +00:00
Tomas V.V.Cox
929e8f81e3 typo 2002-04-21 01:32:03 +00:00
Stig Bakken
8fcdb67068 * add http_proxy config setting 2002-04-19 14:01:51 +00:00
Stig Bakken
c8418830f9 * make "pear install package.xml" possible, so you can install a package
without building a tarball first
2002-04-19 14:01:10 +00:00
Stig Bakken
021ed8a10b * reintroduce (un)install -r option for Registeration only 2002-04-19 14:00:14 +00:00
Stig Bakken
0ca308d152 * fix phpdoc 2002-04-19 13:58:25 +00:00
Martin Jansen
ab54cc1e1b * Add API documentation. 2002-04-18 18:04:06 +00:00
Stig Bakken
948106fd20 * doooh! 2002-04-17 08:22:56 +00:00
Wez Furlong
b10b24d50c Always initialize wrappers, regardless of PG(allow_url_fopen).
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
Stig Bakken
fe2badf64e * added DB::isConnection
* phpdoc fixes
2002-04-16 21:50:48 +00:00
Stig Bakken
5d7b69f43e * started working on analyzeSourceCode and detectDependencies methods 2002-04-16 13:27:42 +00:00
Stig Bakken
e32362f792 * chdir back to original dir in PEAR_Packager::package
* only display "cvstag" hint if CVS/Root exists
2002-04-16 05:01:41 +00:00
Tomas V.V.Cox
b339986c12 Added standar header 2002-04-16 00:44:03 +00:00
Tomas V.V.Cox
7325f1a4f0 Added standar header 2002-04-16 00:38:21 +00:00
Tomas V.V.Cox
8a365fd8a2 Vim tags added plus some other minor text about license and author 2002-04-16 00:31:16 +00:00
Tomas V.V.Cox
299849fbf2 Be more clear when no packages are installed 2002-04-16 00:23:32 +00:00
Tomas V.V.Cox
26e59d106c Give the right error when wrong params given to package-info and
fix/add help some help messages
2002-04-16 00:22:55 +00:00
Markus Fischer
f95fbc4e60 - Do not try to draw a table if there are not elements.
# If no packages are installed, until now the output was:
#
# INSTALLED PACKAGES:
# ===================
# +
# +
#
# Now it is:
#
# INSTALLED PACKAGES:
# ===================
#
# Which is nicer IMHO. It think keeping the caption is ok.
2002-04-14 13:34:52 +00:00
Markus Fischer
509ef0237f - Also raise a different error message if we don't specify any package at all.
# We might consider giving the 'pear help uninstall' output to the user?
2002-04-13 06:00:36 +00:00
Markus Fischer
e060e90f0c - Return a different error message if no package file was given at all. 2002-04-13 05:52:54 +00:00
Markus Fischer
e96a657f8d - Properly format error message.
# Shouldn't this 'throw' an PEAR Error object ?
2002-04-13 05:33:35 +00:00
Stig Bakken
d1814a3c12 * cvstag command: tag slide option is -f, not -F 2002-04-13 00:23:19 +00:00
Stig Bakken
8c0edb86b0 * missing file role message could be mistaken for missing maintainer role 2002-04-13 00:20:40 +00:00
Stig Bakken
5d09a5e199 * add cookie authentication to PEAR_Remote (temporarily in addition to http auth) 2002-04-13 00:13:37 +00:00
Alexander Merz
a272bc81bb use DIRECTORY_SEPERATOR 2002-04-11 10:51:27 +00:00
Stig Bakken
e8ad66aa49 * add download command to description 2002-04-10 21:09:58 +00:00
Tomas V.V.Cox
ca0b7690c8 Implemented "pear download <pakage>" 2002-04-10 15:15:12 +00:00
Tomas V.V.Cox
dfba9e63ab Do not show the "tag it!" message when verbose=0
# Forgot to commit that before
2002-04-10 15:10:49 +00:00
Tomas V.V.Cox
a332c8c27b Added single display() 2002-04-10 15:09:36 +00:00
Tomas V.V.Cox
f833895afd Help for command "shell-test" 2002-04-10 12:40:06 +00:00
Tomas V.V.Cox
3788b31b0e Added "pear package -n" (only output the created package file name) 2002-04-10 12:23:31 +00:00
Stig Bakken
49445bbee0 * ignore dirs and libfiles in older releases (changelog) 2002-04-09 22:30:44 +00:00
Stig Bakken
7e7676f8fb * ignore files in older releases (changelog) 2002-04-09 21:48:19 +00:00
Stig Bakken
22673618f7 * drop the ondemand connect stuff for now 2002-04-09 18:57:28 +00:00
Stig Bakken
96213680ca * add preferred_state 2002-04-09 18:51:31 +00:00
Stig Bakken
28452d5dc0 * drop file replace= attribute 2002-04-09 18:50:54 +00:00
Stig Bakken
e91f94a259 * package-validate uses package.xml as default param 2002-04-09 17:15:17 +00:00
Stig Bakken
3c03ca3d7b * ext/xml/expat no longer has xmltok and xmlparse subdirs 2002-04-09 16:06:07 +00:00
Tomas V.V.Cox
4c125afc74 Make the dependencies check look for the correct registry file 2002-04-09 14:12:12 +00:00
Alexander Merz
eb85e073e5 Win95/98/Me doesn't support locking, please check patch on other systems 2002-04-09 14:00:05 +00:00
Tomas V.V.Cox
dc811f3041 Fix package-list not showing the right Install path 2002-04-09 13:49:47 +00:00
Tomas V.V.Cox
ebb85a3738 Fix a problem when list-installed is called in a new installation 2002-04-09 13:11:51 +00:00
James Cox
c602369f81 it's been changed back to php.exe 2002-04-09 09:59:17 +00:00
Alexander Merz
f6cc322d7d updated, requires PHP4.2 php-cgi 2002-04-09 09:28:04 +00:00
Stig Bakken
efa18af7e1 * show full cvstag command 2002-04-09 08:19:53 +00:00
Stig Bakken
8efdf7bc37 * get rid of CommandResponse stufff 2002-04-09 08:18:49 +00:00
Stig Bakken
2dc974d72d * drop file replace= attribute 2002-04-09 08:17:49 +00:00
Stig Bakken
f2efded1bc * remove PEAR/Uploader.php 2002-04-09 08:12:18 +00:00
Stig Bakken
6b8c7db275 * unused files 2002-04-09 08:11:22 +00:00
Stig Bakken
894cbdf3d2 * implemented role="script" and <replace> substitution during install 2002-04-09 08:10:12 +00:00
Stig Bakken
be65ac95cc * package definition for the base PEAR system 2002-04-09 00:03:44 +00:00
Stig Bakken
6c00a56766 HEADS UP, package.xml format change:
<file>foo.php</file> is now <file name="foo.php/>
Added tags for configure-like substitutions.
# the packager will handle both for a while
2002-04-09 00:03:18 +00:00
Richard Heyes
f006b2bbc3 * Added getStaticProperty() for static methods. 2002-04-08 21:03:41 +00:00
Yasuo Ohgaki
001d332a86 Make pgsql header available for PECL module(s) 2002-04-08 14:17:28 +00:00
Tomas V.V.Cox
2a1e0a53bb Continue the list of features for PEAR DB
Release version is 2.0 (apiVersion)
# Multiline entries inside the tags looks better in the web or in
# "pear package-info" if they aren't formatted to look better
# in the xml
2002-04-08 02:22:48 +00:00
Stig Bakken
79a150068a * append "?uncompress=yes" to the package download url if zlib extension
is not loaded
2002-04-07 21:09:41 +00:00
Stig Bakken
46dd841b28 * package xml file for DB 2002-04-07 21:02:54 +00:00
Tomas V.V.Cox
6ac6b78818 Added PEAR_Common::getUserRoles() and a suggestion 2002-04-07 20:47:04 +00:00
Stig Bakken
6303972256 * added "cvstag" command 2002-04-07 19:42:05 +00:00
Stig Bakken
8ec2ae71db * give PEAR_Packager::package an option to disable compression and make
plain .tar files
2002-04-07 17:07:49 +00:00
Stig Bakken
d6d8d78754 * remove empty fold 2002-04-07 16:51:17 +00:00
Stig Bakken
5bdc0eaafe * use the UI's displayFatalError method 2002-04-07 16:48:24 +00:00
Stig Bakken
6718d569bd * added displayError and displayFatalError methods 2002-04-07 16:47:36 +00:00
Stig Bakken
49b11adf7c * initialize _PEAR_Command_uiobject 2002-04-07 16:42:33 +00:00
Stig Bakken
255bbff361 * leave error reporting to the validator 2002-04-07 15:49:23 +00:00
Stig Bakken
065da3a0fa * more clear cvs tag hint 2002-04-07 15:07:26 +00:00
Tomas V.V.Cox
361cebe460 Just some help cleanup 2002-04-07 14:30:32 +00:00
Stig Bakken
73f4b5b2fa * typo 2002-04-07 13:22:21 +00:00
Stig Bakken
5179e9d0fa * rename package-verify command to package-validate 2002-04-07 12:40:51 +00:00
Stig Bakken
dc974a0299 * support for .tar files in PEAR_Installer
* new command: package-verify
* "package" command now sanity-checks the package information before
  making the tarball
* -Z option to the install/update commands for downloading non-compressed
  packages
2002-04-07 10:38:04 +00:00
Richard Heyes
d3c0d67060 * Added registerShutdownFunc() method 2002-04-06 17:01:14 +00:00
Tomas V.V.Cox
02bff6ce0e Fix bug in pushErrorHandling() (fail under very specific circumstances) 2002-04-06 15:12:04 +00:00
Sascha Schumann
8fae36cbd1 Improve the life of external extension maintainers by
not plaguing them with "./" in absolute paths.

Requested by: Andrei, Wez
2002-04-06 13:42:40 +00:00
Stig Bakken
de1f6319ec * forgot htmlspecialchars in release notes 2002-04-06 00:58:22 +00:00
Wez Furlong
5916b203fe add mbstring headers to those for pear/pecl extensions 2002-04-05 00:16:09 +00:00
Stig Bakken
d4dfead250 * Added "-s" (soft update) option to install/upgrade. Will make installs
fail silently.
2002-04-02 09:21:48 +00:00
Stig Bakken
f8fc50b922 * add Frontend support to PEAR_Common::log() 2002-04-02 09:21:08 +00:00
Stig Bakken
dfa3b671f7 * Implemented "shell-test" command for writing shell scripts that check
whether a package is installed.  Example of use:

    if ! pear shell-test Net_Socket; then
        echo "You don't have the Net_Socket package installed!" >&2
        exit 1
    fi
2002-04-02 09:20:28 +00:00
Stig Bakken
9de06e3662 * just renaming some comments 2002-04-02 09:18:07 +00:00
Stig Bakken
7ddaefba34 * add type property telling what type of frontend this class implements 2002-04-02 09:15:51 +00:00
Stig Bakken
812d9bf3c4 * remove "exit" at the end, it causes a "false" exit code always 2002-04-02 09:10:23 +00:00
Stig Bakken
990d19aefe * comment out the php files that are not necessary for the installer
# the rest will show up as packages in /pear shortly
2002-04-02 09:09:41 +00:00
Tomas V.V.Cox
750ca4295e typo 2002-04-01 19:17:59 +00:00
Tomas V.V.Cox
b57e0609ad Added layer checks and reorganize a little the code 2002-04-01 19:16:01 +00:00
Tomas V.V.Cox
49dacbee8c - Define the PEAR constants when they are not set (be nice
with the "--wihout-pear" people who finally regrets)
- Added method getLayers()
2002-04-01 19:13:37 +00:00
Tomas V.V.Cox
6ec8fbc30e - Make "config-set" actually store the values
- Help and error messages enhance
2002-04-01 18:19:45 +00:00
Tomas V.V.Cox
827334cd2f - Added "nodeps" option to install/upgrade/uninstall
(pear install -n package.tgz)
- Finish to document the install commands
2002-04-01 17:25:42 +00:00
Tomas V.V.Cox
def4a8485d - Set some php.ini values needed by the installer
- Removed unused present_array() and heading() functions
2002-04-01 16:49:19 +00:00
Tomas V.V.Cox
7b68037886 People reported problems with flock(LOCK_SH) and fopen('w') 2002-04-01 16:10:39 +00:00
Tomas V.V.Cox
6e8268e4a4 added help 2002-04-01 15:23:46 +00:00
Tomas V.V.Cox
1924492aed Adaptation for the new help system 2002-04-01 14:35:08 +00:00
Tomas V.V.Cox
edab1197f3 Go with the help system 2002-04-01 14:32:40 +00:00
Stig Bakken
0c7f16bd96 * typo 2002-04-01 14:15:30 +00:00
Tomas V.V.Cox
460eb1103c E_ALL fix 2002-03-31 19:04:53 +00:00
Tomas V.V.Cox
ed450a6c4e if (!function_exists('md5_file')) { ... 2002-03-31 19:04:26 +00:00
Stig Bakken
561ac3d54e * E_ALL fix 2002-03-31 03:16:02 +00:00
Stig Bakken
f1c803a41c * avoid object copying 2002-03-31 01:51:08 +00:00
Stig Bakken
5e13ee1428 * oops, config object was copied
* call parameters were not passed on to xmlrpc_encode_request()
2002-03-31 01:45:36 +00:00
Stig Bakken
c5d35962d2 * install PEAR/Command/Remote.php 2002-03-31 00:32:00 +00:00
Stig Bakken
69df28337b * implemented "pear list-upgrades", which will show you what releases
are available on the server (shows newer releases with the same state)
2002-03-29 02:41:28 +00:00
Stig Bakken
45878bff77 * always require PEAR/Common.php 2002-03-29 02:39:33 +00:00
Stig Bakken
f6e4eea39a * allow "any" as a preferred_state value 2002-03-29 02:38:07 +00:00
Stig Bakken
99cfda3756 * pass on xmlrpc faults as pear errors 2002-03-29 02:17:55 +00:00
Stig Bakken
adc0b5741e * fix tempfile cleanup 2002-03-29 00:05:55 +00:00
Stig Bakken
84652eeb52 * per-command fold marks 2002-03-28 23:50:45 +00:00
Stig Bakken
62bff20267 * regenerate package.xml with file checksums 2002-03-28 23:49:34 +00:00
Stig Bakken
425cb1b04e * default dep rel attribute to 'has' 2002-03-28 23:45:16 +00:00
Stig Bakken
a50c40cc24 * accept optional tmpdir arg in mkTempDir
* handle changelog releases without filelist
2002-03-28 23:44:31 +00:00
Stig Bakken
f5e745e848 * added preferred_state config keyword 2002-03-28 14:27:02 +00:00
Stig Bakken
78c020a3bb * added phpdoc
* now ready to support multiple versions of the package format
* don't parse dependencies in changelog
* fix libfile parsing
* default maintainer roles to 'lead'
* added infoFromString() method
* added xmlFromInfo() method to regenerate package.xml files
2002-03-28 14:07:33 +00:00
Stig Bakken
66d8ab4998 * added "platform" and "md5sum" attributes to <file> 2002-03-28 12:09:59 +00:00
Tomas V.V.Cox
b5f477ba00 E_ALL fixes 2002-03-26 16:31:13 +00:00
Tomas V.V.Cox
0e20c6e383 _lock() now returns PEAR Error or true for consistency 2002-03-26 16:29:53 +00:00
Stig Bakken
365505daed * move logic to _assertStateDir 2002-03-24 01:52:38 +00:00
Tomas V.V.Cox
b217ed9711 The System class was modified to always return true or false instead
of PEAR Errors. Changed then assertStateDir() to check for false.
2002-03-23 18:36:52 +00:00
Tomas V.V.Cox
757ec9ef38 Show maintainers name in package-info and show more human friendly
column table names
2002-03-23 17:55:51 +00:00
Tomas V.V.Cox
1cf543c34a Yet another break; forgotten 2002-03-23 17:46:51 +00:00
Tomas V.V.Cox
fdce319634 Oops, forgot the break; 2002-03-23 17:44:48 +00:00
Tomas V.V.Cox
8ea9125840 - Show the real dir where files would be installed (using role & config)
- Introduce column wrapping
2002-03-23 17:27:39 +00:00
Tomas V.V.Cox
f40007a1ef - Use getenv('TERM') instead of $_ENV (empty for me in 4.1.1)
- Added 'linux' as bold capable list of term types
- Pass the col by reference for making the wrap take effect in tableRow
2002-03-23 16:50:43 +00:00
Tomas V.V.Cox
dc17bcc6ab fix parse error 2002-03-23 15:56:14 +00:00
Stig Bakken
3402d342a6 * added package-list and package-info commands (for .tgz files) 2002-03-23 10:21:29 +00:00
Stig Bakken
9fae289542 * use switch/case for what it's worth :-) 2002-03-23 10:20:41 +00:00
Stig Bakken
b5604d18dc * _lock() calls _assertStateDir() 2002-03-23 10:18:32 +00:00
Stig Bakken
ed16ccb275 * support having a toplevel package.xml in tgz files 2002-03-23 10:17:39 +00:00
Stig Bakken
e965aba2aa * wordwrapping and multiline table cell support 2002-03-23 10:15:36 +00:00
James Cox
7d5e529b55 "reverting" to 1.39 as per Tomas Cox's wishes. 2002-03-23 05:29:09 +00:00
Stig Bakken
5e0f34ea55 * don't start table cells with a space in borderless tables 2002-03-22 12:47:13 +00:00
Stig Bakken
1b09d1f19c * typo fix 2002-03-22 12:46:18 +00:00
Stig Bakken
75f15860b1 * use PEAR_Frontend tables in config-show command 2002-03-22 12:45:41 +00:00
Stig Bakken
a57a5d7eda * now using PEAR_Frontend tables 2002-03-22 11:59:52 +00:00
Stig Bakken
fd62c434e5 * ncurses note 2002-03-22 11:58:22 +00:00
Stig Bakken
5cc2e77ca8 * table support working
* added bold support for xterm/vt220/vt100 terminals
2002-03-22 11:57:45 +00:00
Stig Bakken
8ce0ceb372 * setUIType -> setFrontendType 2002-03-22 11:57:09 +00:00
Stig Bakken
5d11204de0 * rename class/methods 2002-03-22 11:09:58 +00:00
Stig Bakken
9631885246 * temporarily added: nuke old files/dirs 2002-03-22 10:28:27 +00:00
Stig Bakken
73d26803f0 * one last CommandUI -> Frontend change 2002-03-22 10:05:40 +00:00
Stig Bakken
60035fb949 * rename PEAR_CommandUI* to PEAR_Frontend*
* rename PEAR/Command/Login.php to PEAR/Command/Auth.php
* replace PEAR/Command/Info.php with PEAR/Command/Registry.php (will contain
  more commands related to the local registry)
* started working on Frontend table output
2002-03-22 09:22:28 +00:00
Stig Bakken
e41dca2995 * No point in creating the lock file directory if it does not exist (so many
other things would fail anyway).  Throw an error instead.
2002-03-22 08:32:40 +00:00
Tomas V.V.Cox
9772468d37 - Make the rellocation of packages work as expected if the target
dir doesn't exist
- The "install -f" now replaces the info in the registry
2002-03-21 22:29:03 +00:00
Tomas V.V.Cox
41a8a27676 - Added command level options
- Fix error handling for Getopt (it doesn't use raiseError)
2002-03-21 20:55:41 +00:00
Tomas V.V.Cox
a7936eea78 - Implement command level options
- Removed call pass by reference
- Readd $options to command::run() params
2002-03-21 20:52:26 +00:00
Tomas V.V.Cox
a974fbd9ae fix a problem handling nested directories 2002-03-21 19:12:49 +00:00
Tomas V.V.Cox
9bee3510ea readd the "list" command 2002-03-21 11:33:54 +00:00
Tomas V.V.Cox
b14c8152da Adapt this commands to the new config store mechanism and command params 2002-03-21 11:16:15 +00:00
Tomas V.V.Cox
139f69ca32 Pass config to command factory and pass the correct command params 2002-03-21 11:13:02 +00:00
Tomas V.V.Cox
47c71bcaa1 - The config object is stored by the factory method
- Make install/unistall/package work again (didn't work for me)
2002-03-21 11:10:17 +00:00
Tomas V.V.Cox
67b971aece Clean up unused stuff 2002-03-21 11:04:56 +00:00
foobar
4a0291d238 - Make it possible to build ext/openssl as shared extension 2002-03-20 02:07:11 +00:00
Stig Bakken
c19ddade2c * install PEAR_Command_Package 2002-03-19 19:59:05 +00:00
Stig Bakken
de381091ba * re-add "package" command 2002-03-19 19:55:30 +00:00
Stig Bakken
fdf8cafd11 * "pear login" finally works 2002-03-19 19:31:02 +00:00
Stig Bakken
97beb58d43 * fix http auth bug 2002-03-19 19:30:06 +00:00
Stig Bakken
529ec7cda4 * add optional default parameter to userDialog method 2002-03-19 19:28:48 +00:00
Stig Bakken
623905dfbf * pear-get gone 2002-03-19 01:13:20 +00:00
Stig Bakken
41c1c08495 * get rid of this hack 2002-03-18 18:01:14 +00:00
Stig Bakken
a036fe5b72 * Refactoring of "pear" command internals. Highlights:
- user interface abstraction, making a Gtk installer should only be
   a matter of implementing PEAR_CommandUI_Gtk plus a "pear-gtk" executable
 - separated code into command classes, able to specify one or more
   commands
 - no more "pear-get" :-)
* fixed use of PEAR_Config::singleton to avoid object copying
2002-03-18 17:39:52 +00:00
Stig Bakken
c55f61c9aa * added optional layer parameter to get() method
* added isDefinedLayer() method
2002-03-16 23:48:23 +00:00
Sascha Schumann
2ea99fe17a a bit of refactoring and making always_shared a nop in every day life 2002-03-13 12:30:49 +00:00
Sascha Schumann
e10ca10084 Provide context-specific functions which yield the directories
of extensions (PHP 4 configure vs. self-contained module)
2002-03-13 09:20:49 +00:00
Tomas V.V.Cox
7c77b1a71e No more lines on this test 2002-03-13 01:46:10 +00:00
Tomas V.V.Cox
12b0eae9e2 phpdoc update 2002-03-13 01:39:51 +00:00
Tomas V.V.Cox
409a631bed Fix error handling selection when both class and global are set 2002-03-13 01:17:47 +00:00
Stig Bakken
32d3a0afd7 * added file locking
* added file name to package map
2002-03-11 15:13:19 +00:00
Sascha Schumann
9c3b0c752e Invoke pear-related targets conditionally and
rename install-data-local target to install-pear.
Also remove PEAR_DIR, because it is unused.
2002-03-11 13:17:44 +00:00
Sander Roobol
58a52f93bc Fixed many tests, mostly incorrect paths. 2002-03-08 19:16:19 +00:00
Sascha Schumann
9d9d39a0de Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net
directly.

An introduction can be found on

http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Stig Bakken
fda570aadc * PEAR_Config test complete 2002-03-05 20:39:38 +00:00
Stig Bakken
80f1212660 * update PEAR_Config test 2002-03-05 17:39:53 +00:00
Stig Bakken
856e382c8b * fix singleton() so it actually works
* insert file format version in written files
* add getSetValues() method for listing the valid values for a set value
2002-03-05 17:39:29 +00:00
Stig Bakken
22aac3652e * fix PEAR::setErrorHandling() settings so they apply when using raiseError() 2002-03-05 14:43:02 +00:00
Stig Bakken
2b9f535589 * fixed a couple of bugs in PEAR_Config revealed by test 2002-03-05 00:41:36 +00:00
Stig Bakken
8188c50c28 PEAR_Config rewrite:
* Now supports (in theory) an arbitrary number of
  config "layers" (different sets of configuration data with a defined
  priority).
* Specify the type of config values so different frontends can make
  user-friendly configuration interfaces.  Valid types are currently
  "string", "integer", "file", "directory", "set" and "password".  The
  set type lets you specify a limited set of values that the config
  values must be selected from.  Password values are stored
  base64-encoded.
* Added phpdoc comments and some docs for config values.
* Added singleton method.
# configuration files still contain serialized data
2002-03-04 10:02:45 +00:00
Stig Bakken
8d7d6ce2c3 * more cli test fixes 2002-03-02 03:11:02 +00:00
Stig Bakken
4c73289238 * updated tests to work with cli 2002-03-02 03:07:48 +00:00
Stig Bakken
b8aa2339d3 fix test 2002-03-02 02:47:48 +00:00
Stig Bakken
8e0e7cd4ba * code for install/uninstall/upgrade complete, not yet tested
# uses a new, un-committed version of PEAR_Config
2002-03-01 09:43:18 +00:00
Stig Bakken
a146a16475 * output a reminder to set CVS tags after packaging 2002-03-01 09:16:49 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Stig Bakken
4a2e3c4a20 * fix broken dtd
# Tomas, there is no way to do what you want in the DTD without switching
# from XML to SGML.  Sorry :-)
2002-02-24 10:45:28 +00:00
Tomas V.V.Cox
3e4235b29a DTD corrections (make it require minimal data for installer) 2002-02-23 21:21:18 +00:00
Stig Bakken
3ea5f3343b * started implementing new "cross-environment" command API
# work in progress, not tested at all yet!
2002-02-23 15:32:36 +00:00
Tomas V.V.Cox
2833e8467c Point readers to pear web 2002-02-23 13:47:16 +00:00
Tomas V.V.Cox
40c5f9afbc outdated TODO not needed for the moment 2002-02-23 13:44:52 +00:00
Vincent Blavet
508b9eff57 * Packager : Changing the order of the files in the package archive file.
The package.xml file is now at the 'root' of the archive, the files tree are under a 'packagename'-'packageversion' folder
* Installer : installing the knew archive format AND supporting the existing format
2002-02-22 21:57:04 +00:00
Vincent Blavet
04db776e71 Config variables must be set between "" while using pear.bat windows script 2002-02-20 22:39:16 +00:00
Vincent Blavet
16c5edd86f * Correct bug while using windows dir separator. It is now supported 2002-02-20 22:15:28 +00:00
Martin Jansen
52ba15e99d ='typo' 2002-02-18 10:27:36 +00:00
Martin Jansen
12ebcb3a21 * Fix for bug #15500 2002-02-17 15:32:53 +00:00
Stig Bakken
2eef6d482f * allow <license> in both <package> and <release>
* added <changelog> element
* added "data" role for files
* allow nested <dir> elements
2002-02-17 14:43:16 +00:00
Jon Parise
d8bfdb4f91 Image/Remote.php and Mail/mime.php have moved to the pear/ repository. 2002-02-17 04:31:30 +00:00
Vincent Blavet
f6f6d88ad3 * Synchronize pearwin script with pearcmd-xxx.php commands
* Still work to do
2002-02-13 21:27:54 +00:00
Vincent Blavet
dac7d61612 * user system/user config rather than default value 2002-02-13 21:26:39 +00:00
Vincent Blavet
e5a24250d2 - Adding support for remote-list command (with XML-RPC installed)
- Start support of show-config (still work to do ...)
2002-02-13 08:50:07 +00:00
Stig Bakken
6176cf5216 * "pear-get install Auth" works now 2002-02-13 01:40:18 +00:00
Stig Bakken
773ee5d7e7 * don't use ext/overload yet 2002-02-13 01:09:55 +00:00
Stig Bakken
042b883899 * print package name 2002-02-13 01:07:30 +00:00
Jan Lehnardt
9869854d47 - added support for different error messages for the following cases:
-
 - if a user with unsufficient permissions trys to select a database
 - PEAR::DB previously threw a "no database selected" error  instead
 - of a more proper "insufficient permissions". This is fixed now.
 -
 - if a user selects a nonexistant database PEAR::DB threw a
 - "no database selected" error instead of "no such database".
 - This is fixed as well.
 -
 - I added two new constants to DB.php and a simple case construct to
 - DB/mysql.php which can be easily extended to achive the above. I
 - hope this is ok.
 - Thanks to Till Gerken for mentioning this.
2002-02-12 18:29:27 +00:00
Martin Jansen
5aa0158452 * Fix bug #15423. 2002-02-11 13:07:42 +00:00
Tomas V.V.Cox
a5c0adc9fe Now System will return false on fail 2002-02-10 17:23:04 +00:00
Tomas V.V.Cox
0dd3010501 test suite for the System class 2002-02-10 17:12:43 +00:00
Tomas V.V.Cox
d966015b52 - Now error will be triggered with trigger_error(). When a command
fails the function will return false
- In-line documentation update
2002-02-10 17:03:22 +00:00
Martin Jansen
7270b4223d * Better error handling. 2002-02-07 20:50:08 +00:00
Martin Jansen
5e9b1634c6 * Partially fix bug #15423. 2002-02-07 11:15:54 +00:00
Tomas V.V.Cox
b91c077710 added 'System::type()' (show the full path of a command)
Copied almost verbatim from Stig's PEAR_Dependency::checkProgram()
2002-02-06 08:32:00 +00:00
Stig Bakken
ad882c44c9 * add some missing attributes 2002-02-02 00:06:44 +00:00
Tomas V.V.Cox
22aee18f0b Fix remote security risk, pointed out by Wolfram Kriesing 2002-02-01 16:36:32 +00:00
Tomas V.V.Cox
1cb07caf63 Added support for passing special backend params in DSN. Ex:
ibase://user:pass@localhost/db?role=foo&dialect=bar
2002-02-01 15:03:17 +00:00
Martin Jansen
2077f62d08 * Fix bug #15313 2002-01-31 13:41:04 +00:00
Stig Bakken
c049dda279 * lowercase tags and attributes 2002-01-31 08:19:34 +00:00
Stig Bakken
0943dc82dd * remove broken rule for rebuilding Makefile 2002-01-31 08:19:09 +00:00
Stig Bakken
c1048eac9f * don't make command libs executable 2002-01-30 12:21:25 +00:00
Stig Bakken
615f110d4e * modularize "pear" and "pear-get" commands somewhat. checking options
etc. is done for both in pearcmd-common.php.
2002-01-30 12:20:12 +00:00
Stig Bakken
a33fd65b12 * silence warning 2002-01-30 12:18:10 +00:00
Stig Bakken
f4425aece6 * bring DTD up to date 2002-01-30 09:23:34 +00:00
Vincent Blavet
3d95bf927c * Remove the use of a temp dir
* Tar archive is now doing the same work with less overhead
2002-01-26 12:36:30 +00:00
Tomas V.V.Cox
7eebc64347 correct url 2002-01-24 15:02:05 +00:00
Vincent Blavet
06c98b477b * Call the PEAR_Registry constructor with the optional parameter 2002-01-24 08:24:24 +00:00
Vincent Blavet
1696a2c4e2 * Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object (in the same way as Installer.php) 2002-01-24 08:22:46 +00:00
Vincent Blavet
f2121e4bcf * Adding support of extraction of remote archive http://www/archive.tgz
* Correct bug while using Windows root path c:\xxx\yyy in extract fct
2002-01-24 08:08:54 +00:00
Vincent Blavet
2c91e54d5a * Add uninstall command
* Add list-installed command
2002-01-23 19:09:54 +00:00
Tomas V.V.Cox
62c9234520 Return false when the directory can not be created in mkDir() 2002-01-23 18:53:08 +00:00
Jon Parise
6aa6a6ab87 Adding Archive/Tar.php to php4/pear/. This is needed in order for the
phptar script (php4/pear/scripts/phptar) to be useful, so it makes sense
to make Archive/Tar.php a standard component.
2002-01-21 18:25:04 +00:00
Sebastian Bergmann
23f8fe7d47 Move Cache to /pear. 2002-01-20 16:06:08 +00:00
Sebastian Bergmann
9904415f88 Move Payment_Verisign to /pear. 2002-01-20 15:55:04 +00:00
Sebastian Bergmann
8019a1cfe2 Move Benchmark, Math, Numbers to /pear. Remove Log, it was already in /pear. 2002-01-20 15:44:32 +00:00
Tomas V.V.Cox
87530cf819 Stores limit_from and limit_count as DB_result proporties instead
of DB_common. Fixs bug when doing queries inside limitQuery results.
2002-01-19 07:46:23 +00:00
Tomas V.V.Cox
4cfbd67b08 New DSN "protcocol(protocol_opts)" format support:
phptype://user:pass@protocol(proto_opts)/database
ex:
pgsql://user@unix()/pear
mysql://user@unix(/path/to/socket)/pear
pgsql://user:pass@word@tcp(somehost:7777)/pear
2002-01-13 18:24:56 +00:00
Tomas V.V.Cox
e5898af98c - Added HTTP::head($url) which sends a "HEAD" HTTP command to a server
and returns the headers as an associative array
- Call-time pass-by-reference fixes
2002-01-11 01:51:24 +00:00
Tomas V.V.Cox
3a878be7a1 submit a test that will fail due to php bug #14744 2002-01-11 00:04:55 +00:00
Tomas V.V.Cox
ed01060897 ws 2002-01-07 00:11:11 +00:00
Tomas V.V.Cox
ce82f6261a use the new Console_Getopt::readPHPArgv() function to read args 2002-01-06 20:19:41 +00:00
Tomas V.V.Cox
db508778ad Added readPHPArgv() function that will safely read the $argv PHP array
across different PHP configurations. Will take care on register_globals
and register_argc_argv ini directives and the new $_SERVER vars
2002-01-06 20:17:00 +00:00
Tomas V.V.Cox
7f98b04296 Added check for $argv avaible
(thanks Michael Härtl <mhaertl@pressline.de>)
2002-01-05 17:20:08 +00:00
Stig Bakken
54ad4c578c * PEAR.php line number changes again 2002-01-02 17:19:25 +00:00
Stig Bakken
6ca17a6e35 * registry files renamed from .inf to .reg, update test 2002-01-02 17:18:52 +00:00
Stig Bakken
7ab86afd32 * support "pear-get install XML_RPC" 2002-01-02 17:12:26 +00:00
Stig Bakken
4fc3baefd2 * start splitting "pear" command into "pear" and "pear-get" 2002-01-02 17:11:34 +00:00
Stig Bakken
d379d735fb * use new overloading API properly 2002-01-02 17:09:59 +00:00
Stig Bakken
9311e05119 * install PEAR/Dependency.php 2001-12-29 02:12:02 +00:00
Tomas V.V.Cox
6b0ac4420c - Rewrote infoFromTgzFile() (Stig, no more "pedantic" :-)
- Added <description> tag for package.xml
- Temporal fix arround php bug #14744 and temp files cleaning
2001-12-28 19:27:08 +00:00
Stig Bakken
b22a776018 * added <description> element in <package> 2001-12-28 02:09:27 +00:00
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
65a205a7db added default target for installing documentation 2001-12-26 04:00:30 +00:00
Tomas V.V.Cox
09dba8cf28 reverted the last change for now 2001-12-26 03:58:44 +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
Stig Bakken
bd1a88fab6 * use "windir" env.var on Windows too 2001-12-26 01:50:08 +00:00
Stig Bakken
6b8397b9f7 * added System::tmpdir() method (now uses SystemRoot env.var on Windows) 2001-12-26 01:23:04 +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
Yasuo Ohgaki
d4aa7982cf Install session module haeder 2001-12-21 22:50:47 +00:00
Martin Jansen
6c118a143a * Change $Version$ to $Revision$. 2001-12-18 17:06:28 +00:00
Martin Jansen
4b389679c4 * Convert tabs to spaces. 2001-12-18 14:13:43 +00:00
Tomas V.V.Cox
8e18d716f8 that makes more sense 2001-12-18 08:52:48 +00:00
Tomas V.V.Cox
be45657eea quick fix for the "pear info" command 2001-12-18 08:48:28 +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
47419f899f call PEAR::raiseError() instead of $this->raiseError() in factory() 2001-12-17 15:33:34 +00:00
Ulf Wendel
8a4b6a79b7 - included PEAR.php
- flush(): consistent cache group defaults
2001-12-17 11:23:33 +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
Tomas V.V.Cox
a74e56fe05 improved phpdoc of mkTemp() 2001-12-16 01:36:49 +00:00
Tomas V.V.Cox
aadc3fea32 Added System::mktemp() (Creates temporal files or directories) 2001-12-16 01:30:31 +00:00
Martin Jansen
64a857c52e * Destructors seem to work like a charm. -> No need to keep this line. 2001-12-15 15:01:35 +00:00
Martin Jansen
dbe0db638e * Add links to the new documentation. 2001-12-15 14:55:02 +00:00
Sterling Hughes
a98c093d44 be rfc compliant...
RFC 822 *only* supports four digits for the year in order to have a compliant
header.
RFC 850 supports two digits for the year (y2k_incompliant :) so use that when
y2k_compliance is turned off.

In either case, both of these formats require that GMT be appended to the header,
so we do this as well
2001-12-14 11:43:20 +00:00
Stig Bakken
7ea3d57462 * update to new overload api 2001-12-14 07:47:41 +00:00
Alexander Merz
4024d1f938 fix phpdoc 2001-12-13 23:07:16 +00:00
Andrei Zmievski
6bd64164d5 Always output config.nice for standalone extensions. (Really helps with
PHP-GTK).
2001-12-12 20:26:13 +00:00
Stig Bakken
aef2b692c1 * implemented "upgrade"
* report install/uninstall errors
2001-12-12 01:35:03 +00:00
Stig Bakken
035cf39d34 * install PEAR/Autoloader.php 2001-12-12 01:32:01 +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
Tomas V.V.Cox
18f2ffeead fixed bug #14414 2001-12-11 20:52:58 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Stig Bakken
180cce6f63 * fixed the sub-command option parsing
* added -r option to install/uninstall (registers package without
  installing any files, for use by rpm and the like)
2001-12-11 08:39:56 +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
883e3395f0 * stop parsing arguments when encoutering the first non-option arg 2001-12-10 16:38:44 +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
57d908ea1f adding PEAR/Registry.php 2001-11-14 09:55:38 +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
f705826052 * command name changes 2001-11-13 01:07:36 +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
62f57095a0 * shame on me ... 2001-11-12 10:52:41 +00:00
Martin Jansen
98bda8de71 * typo 2001-11-12 10:51:42 +00:00
Jon Parise
1c7f015c4d Provide the full URL to pear.php.net. 2001-11-12 03:04:06 +00:00
Markus Fischer
3a1b1142fe Add missing loop variable $i.
Suppress more warnings when using the option separator '--'.
2001-11-11 04:09:08 +00:00
Markus Fischer
d672226d6f Suppress warning on long-options without an additional argument. 2001-11-11 03:59:22 +00:00
Martin Jansen
13fb78bab1 * some minor improvements 2001-11-10 10:37:24 +00:00
Tomas V.V.Cox
878fb495fe - By default DB_FETCHMODE_OBJECT will do a cast to object from the row
array (twice fast than with DB_Row)
- API Doc updates/fixs
2001-11-08 13:53:44 +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
b1976de01b * fix "list" command 2001-11-07 09:25:39 +00:00
Stig Bakken
81b5aabb33 typo 2001-11-07 09:24:55 +00:00
Chuck Hagenbuch
352e52716a fix the singleton and factory methods for
a). php 4.0.6 (where include_once might return false)
b). to use references and not copy so many objects
2001-11-06 21:46:41 +00:00
Tomas V.V.Cox
5695709fb7 E_ALL fixes 2001-11-06 01:05:28 +00:00
Tomas V.V.Cox
16f8af514f E_ALL fixes 2001-11-06 00:22:18 +00:00
Stig Bakken
db44b1086c * expectError() now accepts "*" as a catch-all
* updated tests
2001-11-04 09:07:17 +00:00
Christian Stocker
288871505b typo 2001-11-02 17:57:17 +00:00
Tomas V.V.Cox
3a0e43cb54 use feautres property instead of options 2001-11-02 00:38:23 +00:00
Tomas V.V.Cox
fa15d6069c - Added row limit support for fetchInto and fetchRow
- Added getRowCounter method for DB_result to get the row number
  you are fetching in limited queries
2001-11-01 15:14: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
2c05c7e0ac * removed error_prepend and error_append properties 2001-10-31 05:48:16 +00:00
Stig Bakken
b5dc4f7ce0 renamed "debuginfo" property declaration to "userinfo" 2001-10-31 05:44:19 +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
31391b8df3 * moved <filelist> from <package> to <release>
* added <state> element
2001-10-30 12:08:07 +00:00
Frank M. Kromann
e9c09b86e1 Adding nextResult() function allowing batches of sql statements to be
executed with one call to the query function.
2001-10-29 23:37:27 +00:00
Frank M. Kromann
51ef66ed67 Adding fbsql.php to PEAR install 2001-10-29 19:28:22 +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
475796a0d7 removed 2001-10-26 20:05:34 +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
Markus Fischer
1a247ba1d8 Made error returning on missing extensions consistent across all backends 2001-10-14 01:23:07 +00:00
Martin Jansen
4d54d1919c * updated email adress 2001-10-13 09:32:34 +00:00
Martin Jansen
e9eb586106 * fixed problem with copyright header on some systems. 2001-10-13 06:22:09 +00:00
Martin Jansen
d37016f26d * streamlined the copyright header
* changed path names in pear.bat to more typical values
# The GUI installer on Win32 installs PHP to c:\php by default, so we
# should make that the predefined value in the PEAR batch file.
2001-10-12 20:39:50 +00:00
Alexander Merz
8d66ae62e9 typo 2001-10-12 19:46:21 +00:00
Alexander Merz
262bcc637d win version of pear the pear script 2001-10-12 19:43:58 +00:00
Stig Bakken
405142087c * replaced PEAR::phpVersionIs with version_compare 2001-10-11 22:11:34 +00:00
Stig Bakken
1f40bd4cd9 * updated line numbers 2001-10-11 01:23:53 +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