--- pear-core/PEAR/Command/Channels.php	2007-04-01 20:30:14.000000000 +0200
+++ ../pear/cur/PEAR/PEAR/Command/Channels.php	2007-04-07 12:06:15.000000000 +0200
@@ -222,9 +222,9 @@
                 $downloader = &$this->getDownloader();
                 if (!class_exists('System')) {
                     require_once 'System.php';
                 }
-                $tmpdir = System::mktemp(array('-d'));
+                $tmpdir = $this->config->get('temp_dir');
                 PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN);
                 $loc = $downloader->downloadHttp($channel, $this->ui, $tmpdir);
                 PEAR::staticPopErrorHandling();
                 if (PEAR::isError($loc)) {
@@ -418,9 +418,9 @@
             $downloader = &$this->getDownloader();
             if (!class_exists('System')) {
                 require_once 'System.php';
             }
-            $tmpdir = System::mktemp(array('-d'));
+            $tmpdir = $this->config->get('temp_dir');
             PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN);
             $loc = $downloader->downloadHttp($params[0], $this->ui, $tmpdir, null, false);
             PEAR::staticPopErrorHandling();
             if (PEAR::isError($loc)) {
@@ -486,9 +486,9 @@
     {
         if (!class_exists('System')) {
             require_once 'System.php';
         }
-        $tmpdir = System::mktemp(array('-d'));
+        $tmpdir = $this->config->get('temp_dir');
         $reg = &$this->config->getRegistry();
         if (sizeof($params) != 1) {
             return $this->raiseError("No channel file specified");
         }
