Bug #5854 [Opn->Csd]: if no installconditions match, no error is raised
| From: | cellog@php.net | Date: | Sat, 12 Nov 2005 06:39:15 +0000 |
| Subject: | Bug #5854 [Opn->Csd]: if no installconditions match, no error is raised | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-7163@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5854&edit=1
ID: 5854
Updated by: cellog@php.net
-Summary: (*ix|*ux|darwin*|SunOS*) is not selecting linux when
used as an installconditio
Reported By: marek at kuziel dot info
-Status: Open
+Status: Closed
Id: 5854
Type: Bug
-Package: PEAR
+Package: Documentation
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cellog
New Comment:
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
it turns out, this is expected behavior.
See
http://pear.php.net/manual/en/guide.developers.package2.dependencies.php
The problem is that it should let you know that your installcondition
is bogus. I've changed the bug subject to reflect the problem, and
added an error catch in PEAR_PackageFile_v2 that should do the trick.
Previous Comments:
------------------------------------------------------------------------
[2005-11-03 00:55:09] marek at kuziel dot info
Description:
------------
It is possible to successfully install a package that contains no files
by ignoring all of them.
It's probably bug in OS_Guess, where (*ix|*ux|darwin*|SunOS*) is not
selecting linux when used as an installcondition in package
description.
Real life situation. I've a package which contains only one BASH script
(file role=script) and is only for Linux. By specifying installcondition
for that file
<installconditions>
<os>
<name>(*ix|*ux|darwin*|SunOS*)</name>
</os>
</installconditions>
everything seems fine, 'pear package-validate' validates the package,
but then when I install the package to pear repository (installation
run with ok result) and run 'pear list-files MYPACKAGENAME' it shows me
zero files installed and really script is not installed.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5854&edit=1