}
if (isset($v['shortopt'])) {
$s = $v['shortopt'];
- $help .= " -$s$sapp, --$k$lapp\n";
+ @$help .= " -$s$sapp, --$k$lapp\n";
} else {
- $help .= " --$k$lapp\n";
+ @$help .= " --$k$lapp\n";
}
$p = " ";
$doc = rtrim(str_replace("\n", "\n$p", $v['doc']));
'function' => 'doConfigGet',
'shortcut' => 'cg',
'options' => array(),
- 'doc' => 'Displays the value of one configuration parameter. The
+ 'doc' => '<parameter> [layer]
+Displays the value of one configuration parameter. The
first argument is the name of the parameter, an optional second argument
may be used to tell which configuration layer to look in. Valid configuration
layers are "user", "system" and "default". If no layer is specified, a value
'function' => 'doConfigSet',
'shortcut' => 'cs',
'options' => array(),
- 'doc' => 'Sets the value of one configuration parameter. The first
-argument is the name of the parameter, the second argument is the new value.
-Some parameters are be subject to validation, and the command will fail with
-an error message if the new value does not make sense. An optional third
-argument may be used to specify which layer to set the configuration parameter
-in. The default layer is "user".
+ 'doc' => '<parameter> <value> [layer]
+Sets the value of one configuration parameter. The first argument is
+the name of the parameter, the second argument is the new value. Some
+parameters are subject to validation, and the command will fail with
+an error message if the new value does not make sense. An optional
+third argument may be used to specify in which layer to set the
+configuration parameter. The default layer is "user".
',
),
'config-help' => array(
}
-?>
\ No newline at end of file
+?>
Signs a package distribution (.tar or .tgz) file with GnuPG.',
),
'makerpm' => array(
- 'summary' => 'Builds an RPM package from a PEAR package',
+ 'summary' => 'Builds an RPM spec file from a PEAR package',
'function' => 'doMakeRPM',
'shortcut' => 'rpm',
'options' => array(
if (PEAR::isError($available)) {
return $this->raiseError($available);
}
+ if (!is_array($available)) {
+ return $this->raiseError('The package list could not be fetched from the remote server. Please try again. (Debug info: "'.$available.'")');
+ }
$data = array(
'caption' => 'All packages:',
'border' => true,
break;
case 'config-show':
$data['border'] = true;
- $opts = array(0 => array('wrap' => 20),
+ $opts = array(0 => array('wrap' => 30),
1 => array('wrap' => 20),
2 => array('wrap' => 35));
$this->_startTable($data);
if (extension_loaded("xmlrpc")) {
$result = call_user_func_array(array(&$this, 'call_epi'), $args);
- $this->saveCache($_args, $result);
+ if (!PEAR::isError($result)) {
+ $this->saveCache($_args, $result);
+ };
return $result;
}
if (!@include_once("XML/RPC.php")) {