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