Stig Bakken
dad70be69c
* show "update ok" after updates
2002-05-09 06:49:12 +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
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
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
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
31d02d2bb8
* make validator work again
2002-04-23 23:36:54 +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
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
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
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
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
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
e91f94a259
* package-validate uses package.xml as default param
2002-04-09 17:15:17 +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
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
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
79a150068a
* append "?uncompress=yes" to the package download url if zlib extension
...
is not loaded
2002-04-07 21:09:41 +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
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
Stig Bakken
de1f6319ec
* forgot htmlspecialchars in release notes
2002-04-06 00:58:22 +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
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
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
edab1197f3
Go with the help system
2002-04-01 14:32:40 +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
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
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
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
5d11204de0
* rename class/methods
2002-03-22 11:09:58 +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
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
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
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
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
Stig Bakken
32d3a0afd7
* added file locking
...
* added file name to package map
2002-03-11 15:13:19 +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
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
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
3ea5f3343b
* started implementing new "cross-environment" command API
...
# work in progress, not tested at all yet!
2002-02-23 15:32:36 +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
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
Tomas V.V.Cox
a5c0adc9fe
Now System will return false on fail
2002-02-10 17:23:04 +00:00
Stig Bakken
a33fd65b12
* silence warning
2002-01-30 12:18:10 +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
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
Stig Bakken
7ab86afd32
* support "pear-get install XML_RPC"
2002-01-02 17:12:26 +00:00
Stig Bakken
d379d735fb
* use new overloading API properly
2002-01-02 17:09:59 +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
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