Skip to content

Commit b7ae49f

Browse files
author
Greg Beaver
committed
set explicit group in this case
1 parent ed3e5ec commit b7ae49f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

PEAR/Downloader/Package.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,14 +1261,22 @@ function &getPackagefileObject(&$c, $d, $t = false)
12611261
return $a;
12621262
}
12631263

1264-
function _fromFile($param)
1264+
1265+
/**
1266+
* This will retrieve from a local file if possible, and parse out
1267+
* a group name as well. The original parameter will be modified to reflect this.
1268+
* @param string
1269+
* @access private
1270+
*/
1271+
function _fromFile(&$param)
12651272
{
12661273
if (!@is_file($param)) {
12671274
$test = explode('#', $param);
12681275
$group = array_pop($test);
12691276
if (@is_file(implode('#', $test))) {
12701277
$this->setGroup($group);
12711278
$param = implode('#', $test);
1279+
$this->_explicitGroup = true;
12721280
}
12731281
}
12741282
if (@is_file($param)) {

0 commit comments

Comments
 (0)