PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #8835

PEAR upgrade failes on COMMIT error

Details

Submitted2006-10-03 09:46 UTC
Fromsnowkrash at xs4all dot nl
StatusNo Feedback
PackagePEAR
PHP Version5.1.6
OSWindows XP Pro SP2
Roadmaps(Not assigned)

Comments

[2006-10-03 09:46 UTC] snowkrash at xs4all dot nl

Description:
------------
When trying to upgrade a package it failes with a copy error and the message COMMIT FAILED.

I use the XAMPP (http://www,apachefriends.org) integrated test environment on my Windows system.

I was always able to do all upgrades. Even the Symfony package was still upgraded, but MDB_Querytool and the rest of the packages couldn't.
My PEAR config:

CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir C:\Program Files\xampp\php
PEAR documentation directory doc_dir C:\Program
Files\xampp\php\pear\docs
PHP extension directory ext_dir C:\Program Files\xampp\php\ext\
PEAR directory php_dir C:\Program Files\xampp\php\pear
PEAR Installer cache directory cache_dir C:\Program Files\xampp\tmp
PEAR data directory data_dir C:\Program
Files\xampp\php\pear\data
PEAR Installer download download_dir C:\DOCUME~1\me\LOCALS~1\Temp\pear\cache
directory
PHP CLI/CGI binary php_bin C:\Program Files\xampp\php\php.exe
php.ini location php_ini <not set>
PEAR Installer temp directory temp_dir C:\DOCUME~1\JORDIB~1\LOCALS~1\Temp\pear\temp
PEAR test directory test_dir C:\Program
Files\xampp\php\pear\tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state alpha
Unix file mask umask 0
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin C:\Program Files\GNU\GnuPG\gpg.EXE
Signature Key Directory sig_keydir C:\Program Files\xampp\php\pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename C:\WINDOWS\pear.ini
System Configuration File Filename C:\WINDOWS\pearsys.ini

Test script:
---------------
C:\Documents and Settings\me>pear list-upgrades
Channel pear.phing.info: No upgrades available
PEAR.PHP.NET AVAILABLE UPGRADES (ALPHA, BETA, STABLE):
======================================================
CHANNEL PACKAGE LOCAL REMOTE SIZE
pear.php.net CodeGen_PECL 1.0.0 (stable) 1.0.3 (stable) 72kB
pear.php.net FSM 1.2.3 (stable) 1.2.4 (stable) 6.5kB
pear.php.net Math_Matrix 0.8.0 (stable) 0.8.5 (beta) 14.2kB
pear.php.net Math_Stats 0.8.5 (stable) 0.9.0beta3 (beta) 19.5kB
pear.php.net MDB_QueryTool 1.0.2 (stable) 1.1.1 (stable) 42kB
pear.php.net Net_DNS 0.03 (stable) 1.0.0RC4 (beta) 27kB
pear.php.net PEAR_PackageFileManager 1.5.2 (stable) 1.6.0b4 (beta) 83kB
pear.php.net PHP_CompatInfo 1.0.0 (stable) 1.4.0 (stable) 89kB
pear.php.net Services_Weather 1.3.2 (stable) 1.4.0 (stable) 53kB
PEAR.SYMFONY-PROJECT.COM AVAILABLE UPGRADES (ALPHA, BETA, STABLE):
==================================================================
CHANNEL PACKAGE LOCAL REMOTE SIZE
pear.symfony-project.com symfony 0.9.2278 (alpha) 0.9.2290 (alpha) 1553kB

C:\Documents and Settings\Jordi Backx>pear upgrade symfony/symfony
downloading symfony-0.9.2290.tgz ...
Starting to download symfony-0.9.2290.tgz (1,590,066 bytes)
...........................................................................................
.............done: 1,590,066 bytes
upgrade ok: channel://pear.symfony-project.com/symfony-0.9.2290

C:\Documents and Settings\Jordi Backx>pear upgrade --alldeps MDB_Querytool
downloading MDB_QueryTool-1.1.1.tgz ...
Starting to download MDB_QueryTool-1.1.1.tgz (42,147 bytes)
............done: 42,147 bytes
Could not copy \xampp\php\pear\MDB\QueryTool.php to \xampp\php\pear\MDB\QueryTool.php.bak failed to open stream: No such file or directory
ERROR: commit failed

Expected result:
----------------
A correct upgrade

Actual result:
--------------
Download OK, backup existing package source file failes and the message "ERROR: commit failed".

There is a copy error that the file couldn't be found, but it is there.

I do think that the paths mentioned for the copy are missing drive letters.

[2006-10-10 04:57 UTC] snowkrash at xs4all dot nl

This doesn't happen consistently. Yesterday I tried to upgrade HTML_Common. It didn't work. HTML_Menu, though, upgraded correctly.

The only solution so far for me on the unwilling packages is doing an uninstall --nodeps and reinstall it.