This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

CloCkWeRX

By: a guest on Jan 23rd, 2009  |  syntax: PHP  |  size: 34.45 KB  |  views: 173  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: PEAR_Downloader_Package/test_initialize_abstractpackage.phpt
  2. ===================================================================
  3. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage.phpt,v
  4. retrieving revision 1.6
  5. diff -u -r1.6 test_initialize_abstractpackage.phpt
  6. --- PEAR_Downloader_Package/test_initialize_abstractpackage.phpt        26 May 2007 00:00:58 -0000      1.6
  7. +++ PEAR_Downloader_Package/test_initialize_abstractpackage.phpt        24 Jan 2009 04:43:30 -0000
  8.  -12,7 +12,7 @@
  9.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  10.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  11.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  12. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  13. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  14.      array(array('package' => 'test', 'channel' => 'pear.php.net'), 'stable'),
  15.      array('version' => '1.0',
  16.            'info' =>
  17. Index: PEAR_Downloader_Package/test_initialize_invalidabstractpackage1.phpt
  18. ===================================================================
  19. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_initialize_invalidabstractpackage1.phpt,v
  20. retrieving revision 1.7
  21. diff -u -r1.7 test_initialize_invalidabstractpackage1.phpt
  22. --- PEAR_Downloader_Package/test_initialize_invalidabstractpackage1.phpt        26 May 2007 00:00:58 -0000      1.7
  23. +++ PEAR_Downloader_Package/test_initialize_invalidabstractpackage1.phpt        24 Jan 2009 04:43:30 -0000
  24.  -12,7 +12,7 @@
  25.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  26.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  27.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  28. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  29. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  30.      array(array('package' => 'test', 'channel' => 'pear.php.net'), 'stable'),
  31.      false);
  32.  $dp = &newDownloaderPackage(array());
  33. Index: PEAR_Downloader_Package/test_initialize_invalidabstractpackage2.phpt
  34. ===================================================================
  35. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_initialize_invalidabstractpackage2.phpt,v
  36. retrieving revision 1.8
  37. diff -u -r1.8 test_initialize_invalidabstractpackage2.phpt
  38. --- PEAR_Downloader_Package/test_initialize_invalidabstractpackage2.phpt        26 May 2007 00:00:58 -0000      1.8
  39. +++ PEAR_Downloader_Package/test_initialize_invalidabstractpackage2.phpt        24 Jan 2009 04:43:30 -0000
  40.  -12,7 +12,7 @@
  41.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  42.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  43.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  44. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  45. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  46.      array(array('package' => 'test', 'channel' => 'pear.php.net'), 'stable'),
  47.      array('version' => '0.2.0',
  48.            'info' =>
  49. Index: PEAR_Downloader_Package/test_initialize_invalidabstractpackage3.phpt
  50. ===================================================================
  51. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_initialize_invalidabstractpackage3.phpt,v
  52. retrieving revision 1.7
  53. diff -u -r1.7 test_initialize_invalidabstractpackage3.phpt
  54. --- PEAR_Downloader_Package/test_initialize_invalidabstractpackage3.phpt        26 May 2007 00:00:58 -0000      1.7
  55. +++ PEAR_Downloader_Package/test_initialize_invalidabstractpackage3.phpt        24 Jan 2009 04:43:30 -0000
  56.  -12,7 +12,7 @@
  57.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  58.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  59.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  60. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  61. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  62.      array(array('package' => 'test', 'channel' => 'pear.php.net', 'version' => '1.0'), 'stable'),
  63.      array('version' => '0.2.0',
  64.            'info' =>
  65. Index: PEAR_Downloader_Package/test_initialize_invalidabstractpackage4.phpt
  66. ===================================================================
  67. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_initialize_invalidabstractpackage4.phpt,v
  68. retrieving revision 1.7
  69. diff -u -r1.7 test_initialize_invalidabstractpackage4.phpt
  70. --- PEAR_Downloader_Package/test_initialize_invalidabstractpackage4.phpt        26 May 2007 00:00:58 -0000      1.7
  71. +++ PEAR_Downloader_Package/test_initialize_invalidabstractpackage4.phpt        24 Jan 2009 04:43:31 -0000
  72.  -12,7 +12,7 @@
  73.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  74.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  75.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  76. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  77. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  78.      array(array('package' => 'test', 'channel' => 'pear.php.net', 'state' => 'stable'), 'stable'),
  79.      array('version' => '0.2.0',
  80.            'info' =>
  81. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_groupdefault2.0.phpt
  82. ===================================================================
  83. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_groupdefault2.0.phpt,v
  84. retrieving revision 1.5
  85. diff -u -r1.5 test_mergeDependencies_basic_groupdefault2.0.phpt
  86. --- PEAR_Downloader_Package/test_mergeDependencies_basic_groupdefault2.0.phpt   26 May 2007 00:00:58 -0000      1.5
  87. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_groupdefault2.0.phpt   24 Jan 2009 04:43:31 -0000
  88.  -18,7 +18,7 @@
  89.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  90.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub1-1.0.tgz', $sub1package);
  91.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub2-1.0.tgz', $sub2package);
  92. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  93. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  94.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  95.      array('version' => '1.0',
  96.            'info' =>
  97.  -104,7 +104,7 @@
  98.   </phprelease>
  99.  </package>',
  100.           'url' => 'http://www.example.com/main-1.0'));
  101. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  102. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  103.      array('2.0', array('name' => 'sub1', 'channel' => 'pear.php.net', 'min' => '1.1'),
  104.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  105.      array('version' => '1.1',
  106.  -176,7 +176,7 @@
  107.   </phprelease>
  108.  </package>',
  109.           'url' => 'http://www.example.com/sub1-1.1'));
  110. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  111. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  112.      array('2.0', array('name' => 'sub2', 'channel' => 'pear.php.net', 'min' => '1.1'),
  113.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  114.      array('version' => '1.1',
  115. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_groupnotspecified_2.0.phpt
  116. ===================================================================
  117. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_groupnotspecified_2.0.phpt,v
  118. retrieving revision 1.6
  119. diff -u -r1.6 test_mergeDependencies_basic_groupnotspecified_2.0.phpt
  120. --- PEAR_Downloader_Package/test_mergeDependencies_basic_groupnotspecified_2.0.phpt     26 May 2007 00:00:58 -0000      1.6
  121. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_groupnotspecified_2.0.phpt     24 Jan 2009 04:43:31 -0000
  122.  -18,7 +18,7 @@
  123.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  124.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub1-1.0.tgz', $sub1package);
  125.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub2-1.0.tgz', $sub2package);
  126. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  127. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  128.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  129.      array('version' => '1.0',
  130.            'info' =>
  131.  -104,7 +104,7 @@
  132.   </phprelease>
  133.  </package>',
  134.           'url' => 'http://www.example.com/main-1.0'));
  135. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  136. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  137.      array('2.0', array('name' => 'sub1', 'channel' => 'pear.php.net', 'min' => '1.1'),
  138.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  139.      array('version' => '1.1',
  140.  -176,7 +176,7 @@
  141.   </phprelease>
  142.  </package>',
  143.           'url' => 'http://www.example.com/sub1-1.1'));
  144. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  145. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  146.      array('2.0', array('name' => 'sub2', 'channel' => 'pear.php.net', 'min' => '1.1'),
  147.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  148.      array('version' => '1.1',
  149. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified2.0.phpt
  150. ===================================================================
  151. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified2.0.phpt,v
  152. retrieving revision 1.5
  153. diff -u -r1.5 test_mergeDependencies_basic_groupspecified2.0.phpt
  154. --- PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified2.0.phpt 26 May 2007 00:00:58 -0000      1.5
  155. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified2.0.phpt 24 Jan 2009 04:43:31 -0000
  156.  -18,7 +18,7 @@
  157.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  158.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub1-1.0.tgz', $sub1package);
  159.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub2-1.0.tgz', $sub2package);
  160. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  161. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  162.      array(array('package' => 'main', 'channel' => 'pear.php.net', 'group' => 'test'), 'stable'),
  163.      array('version' => '1.0',
  164.            'info' =>
  165.  -104,7 +104,7 @@
  166.   </phprelease>
  167.  </package>',
  168.           'url' => 'http://www.example.com/main-1.0'));
  169. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  170. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  171.      array('2.0', array('name' => 'sub1', 'channel' => 'pear.php.net', 'min' => '1.1'),
  172.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  173.      array('version' => '1.1',
  174.  -176,7 +176,7 @@
  175.   </phprelease>
  176.  </package>',
  177.           'url' => 'http://www.example.com/sub1-1.1'));
  178. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  179. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  180.      array('2.0', array('name' => 'sub2', 'channel' => 'pear.php.net', 'min' => '1.1'),
  181.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  182.      array('version' => '1.1',
  183. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified_notfound2.0.phpt
  184. ===================================================================
  185. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified_notfound2.0.phpt,v
  186. retrieving revision 1.6
  187. diff -u -r1.6 test_mergeDependencies_basic_groupspecified_notfound2.0.phpt
  188. --- PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified_notfound2.0.phpt        26 May 2007 00:00:59 -0000      1.6
  189. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_groupspecified_notfound2.0.phpt        24 Jan 2009 04:43:31 -0000
  190.  -18,7 +18,7 @@
  191.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  192.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub1-1.0.tgz', $sub1package);
  193.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/sub2-1.0.tgz', $sub2package);
  194. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  195. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  196.      array(array('package' => 'main', 'channel' => 'pear.php.net', 'group' => 'foo'), 'stable'),
  197.      array('version' => '1.0',
  198.            'info' =>
  199.  -104,7 +104,7 @@
  200.   </phprelease>
  201.  </package>',
  202.           'url' => 'http://www.example.com/main-1.0'));
  203. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  204. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  205.      array('2.0', array('name' => 'sub1', 'channel' => 'pear.php.net', 'min' => '1.1'),
  206.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  207.      array('version' => '1.1',
  208.  -176,7 +176,7 @@
  209.   </phprelease>
  210.  </package>',
  211.           'url' => 'http://www.example.com/sub1-1.1'));
  212. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  213. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  214.      array('2.0', array('name' => 'sub2', 'channel' => 'pear.php.net', 'min' => '1.1'),
  215.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.0'), 'stable'),
  216.      array('version' => '1.1',
  217. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0.phpt
  218. ===================================================================
  219. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0.phpt,v
  220. retrieving revision 1.7
  221. diff -u -r1.7 test_mergeDependencies_basic_optional_1.0.phpt
  222. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0.phpt      26 May 2007 00:00:59 -0000      1.7
  223. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0.phpt      24 Jan 2009 04:43:31 -0000
  224.  -15,7 +15,7 @@
  225.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  226.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.1.tgz', $mainpackage);
  227.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  228. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  229. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  230.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  231.      array('version' => '1.1',
  232.            'info' =>
  233.  -66,7 +66,7 @@
  234.  </package>
  235.  ',
  236.           'url' => 'http://www.example.com/mainold-1.1'));
  237. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  238. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  239.      array('1.0', array(
  240.          'type' =>
  241.              "pkg",
  242. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_alldeps.phpt
  243. ===================================================================
  244. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_alldeps.phpt,v
  245. retrieving revision 1.5
  246. diff -u -r1.5 test_mergeDependencies_basic_optional_1.0_alldeps.phpt
  247. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_alldeps.phpt      26 May 2007 00:00:59 -0000      1.5
  248. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_alldeps.phpt      24 Jan 2009 04:43:31 -0000
  249.  -15,7 +15,7 @@
  250.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  251.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.1.tgz', $mainpackage);
  252.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  253. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  254. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  255.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  256.      array('version' => '1.1',
  257.            'info' =>
  258.  -66,7 +66,7 @@
  259.  </package>
  260.  ',
  261.           'url' => 'http://www.example.com/mainold-1.1'));
  262. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  263. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  264.      array('1.0', array(
  265.          'type' =>
  266.              "pkg",
  267. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_onlyreqdeps.phpt
  268. ===================================================================
  269. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_onlyreqdeps.phpt,v
  270. retrieving revision 1.7
  271. diff -u -r1.7 test_mergeDependencies_basic_optional_1.0_onlyreqdeps.phpt
  272. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_onlyreqdeps.phpt  26 May 2007 00:00:59 -0000      1.7
  273. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_1.0_onlyreqdeps.phpt  24 Jan 2009 04:43:31 -0000
  274.  -15,7 +15,7 @@
  275.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  276.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.1.tgz', $mainpackage);
  277.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  278. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  279. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  280.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  281.      array('version' => '1.1',
  282.            'info' =>
  283.  -66,7 +66,7 @@
  284.  </package>
  285.  ',
  286.           'url' => 'http://www.example.com/mainold-1.1'));
  287. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  288. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  289.      array('1.0', array(
  290.          'type' =>
  291.              "pkg",
  292. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0.phpt
  293. ===================================================================
  294. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0.phpt,v
  295. retrieving revision 1.7
  296. diff -u -r1.7 test_mergeDependencies_basic_optional_2.0.phpt
  297. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0.phpt      26 May 2007 00:00:59 -0000      1.7
  298. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0.phpt      24 Jan 2009 04:43:32 -0000
  299.  -15,7 +15,7 @@
  300.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  301.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.1.tgz', $mainpackage);
  302.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  303. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  304. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  305.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  306.      array('version' => '1.1',
  307.            'info' =>
  308.  -71,7 +71,7 @@
  309.   <phprelease/>
  310.  </package>',
  311.           'url' => 'http://www.example.com/main-1.1'));
  312. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  313. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  314.      array('2.0', array('name' => 'required', 'channel' => 'pear.php.net', 'min' => '1.1'),
  315.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.1'), 'stable'),
  316.      array('version' => '1.1',
  317. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_alldeps.phpt
  318. ===================================================================
  319. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_alldeps.phpt,v
  320. retrieving revision 1.5
  321. diff -u -r1.5 test_mergeDependencies_basic_optional_2.0_alldeps.phpt
  322. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_alldeps.phpt      26 May 2007 00:00:59 -0000      1.5
  323. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_alldeps.phpt      24 Jan 2009 04:43:32 -0000
  324.  -15,7 +15,7 @@
  325.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  326.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.1.tgz', $mainpackage);
  327.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  328. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  329. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  330.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  331.      array('version' => '1.1',
  332.            'info' =>
  333.  -71,7 +71,7 @@
  334.   <phprelease/>
  335.  </package>',
  336.           'url' => 'http://www.example.com/main-1.1'));
  337. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  338. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  339.      array('2.0', array('name' => 'required', 'channel' => 'pear.php.net', 'min' => '1.1'),
  340.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.1'), 'stable'),
  341.      array('version' => '1.1',
  342. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_onlyreqdeps.phpt
  343. ===================================================================
  344. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_onlyreqdeps.phpt,v
  345. retrieving revision 1.7
  346. diff -u -r1.7 test_mergeDependencies_basic_optional_2.0_onlyreqdeps.phpt
  347. --- PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_onlyreqdeps.phpt  26 May 2007 00:00:59 -0000      1.7
  348. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_optional_2.0_onlyreqdeps.phpt  24 Jan 2009 04:43:32 -0000
  349.  -15,7 +15,7 @@
  350.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  351.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.1.tgz', $mainpackage);
  352.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  353. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  354. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  355.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  356.      array('version' => '1.1',
  357.            'info' =>
  358.  -71,7 +71,7 @@
  359.   <phprelease/>
  360.  </package>',
  361.           'url' => 'http://www.example.com/main-1.1'));
  362. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  363. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  364.      array('2.0', array('name' => 'required', 'channel' => 'pear.php.net', 'min' => '1.1'),
  365.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.1'), 'stable'),
  366.      array('version' => '1.1',
  367. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0.phpt
  368. ===================================================================
  369. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0.phpt,v
  370. retrieving revision 1.7
  371. diff -u -r1.7 test_mergeDependencies_basic_required_1.0.phpt
  372. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0.phpt      26 May 2007 00:00:59 -0000      1.7
  373. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0.phpt      24 Jan 2009 04:43:32 -0000
  374.  -15,7 +15,7 @@
  375.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  376.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.0.tgz', $mainpackage);
  377.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  378. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  379. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  380.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  381.      array('version' => '1.0',
  382.            'info' =>
  383.  -66,7 +66,7 @@
  384.  </package>
  385.  ',
  386.           'url' => 'http://www.example.com/mainold-1.0'));
  387. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  388. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  389.      array('1.0', array(
  390.          'type' =>
  391.              "pkg",
  392. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_alldeps.phpt
  393. ===================================================================
  394. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_alldeps.phpt,v
  395. retrieving revision 1.5
  396. diff -u -r1.5 test_mergeDependencies_basic_required_1.0_alldeps.phpt
  397. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_alldeps.phpt      26 May 2007 00:00:59 -0000      1.5
  398. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_alldeps.phpt      24 Jan 2009 04:43:32 -0000
  399.  -15,7 +15,7 @@
  400.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  401.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.0.tgz', $mainpackage);
  402.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  403. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  404. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  405.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  406.      array('version' => '1.0',
  407.            'info' =>
  408.  -66,7 +66,7 @@
  409.  </package>
  410.  ',
  411.           'url' => 'http://www.example.com/mainold-1.0'));
  412. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  413. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  414.      array('1.0', array(
  415.          'type' =>
  416.              "pkg",
  417. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps.phpt
  418. ===================================================================
  419. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps.phpt,v
  420. retrieving revision 1.5
  421. diff -u -r1.5 test_mergeDependencies_basic_required_1.0_onlyreqdeps.phpt
  422. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps.phpt  26 May 2007 00:00:59 -0000      1.5
  423. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps.phpt  24 Jan 2009 04:43:32 -0000
  424.  -15,7 +15,7 @@
  425.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  426.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.0.tgz', $mainpackage);
  427.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  428. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  429. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  430.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  431.      array('version' => '1.0',
  432.            'info' =>
  433.  -66,7 +66,7 @@
  434.  </package>
  435.  ',
  436.           'url' => 'http://www.example.com/mainold-1.0'));
  437. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  438. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  439.      array('1.0', array(
  440.          'type' =>
  441.              "pkg",
  442. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps_installed.phpt
  443. ===================================================================
  444. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps_installed.phpt,v
  445. retrieving revision 1.9
  446. diff -u -r1.9 test_mergeDependencies_basic_required_1.0_onlyreqdeps_installed.phpt
  447. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps_installed.phpt        26 May 2007 00:00:59 -0000      1.9
  448. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_1.0_onlyreqdeps_installed.phpt        24 Jan 2009 04:43:32 -0000
  449.  -15,7 +15,7 @@
  450.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  451.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/mainold-1.0.tgz', $mainpackage);
  452.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  453. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  454. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  455.      array(array('package' => 'mainold', 'channel' => 'pear.php.net'), 'stable'),
  456.      array('version' => '1.0',
  457.            'info' =>
  458.  -66,7 +66,7 @@
  459.  </package>
  460.  ',
  461.           'url' => 'http://www.example.com/mainold-1.0'));
  462. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  463. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  464.      array('1.0', array(
  465.          'type' =>
  466.              "pkg",
  467. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0.phpt
  468. ===================================================================
  469. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0.phpt,v
  470. retrieving revision 1.6
  471. diff -u -r1.6 test_mergeDependencies_basic_required_2.0.phpt
  472. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0.phpt      26 May 2007 00:00:59 -0000      1.6
  473. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0.phpt      24 Jan 2009 04:43:32 -0000
  474.  -15,7 +15,7 @@
  475.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  476.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  477.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  478. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  479. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  480.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  481.      array('version' => '1.1',
  482.            'info' =>
  483.  -69,7 +69,7 @@
  484.   <phprelease/>
  485.  </package>',
  486.           'url' => 'http://www.example.com/main-1.1'));
  487. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  488. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  489.      array('2.0', array('name' => 'required', 'channel' => 'pear.php.net', 'min' => '1.1'),
  490.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.1'), 'stable'),
  491.      array('version' => '1.1',
  492. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0_installed.phpt
  493. ===================================================================
  494. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0_installed.phpt,v
  495. retrieving revision 1.9
  496. diff -u -r1.9 test_mergeDependencies_basic_required_2.0_installed.phpt
  497. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0_installed.phpt    26 May 2007 00:00:59 -0000      1.9
  498. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_2.0_installed.phpt    24 Jan 2009 04:43:32 -0000
  499.  -15,7 +15,7 @@
  500.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'required-1.1.tgz';
  501.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  502.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/required-1.1.tgz', $requiredpackage);
  503. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  504. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  505.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  506.      array('version' => '1.1',
  507.            'info' =>
  508.  -69,7 +69,7 @@
  509.   <phprelease/>
  510.  </package>',
  511.           'url' => 'http://www.example.com/main-1.1'));
  512. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDepDownloadURL',
  513. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDepDownloadURL',
  514.      array('2.0', array('name' => 'required', 'channel' => 'pear.php.net', 'min' => '1.1'),
  515.          array('channel' => 'pear.php.net', 'package' => 'main', 'version' => '1.1'), 'stable',
  516.          '1.0'),
  517. Index: PEAR_Downloader_Package/test_mergeDependencies_basic_required_uri.phpt
  518. ===================================================================
  519. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_mergeDependencies_basic_required_uri.phpt,v
  520. retrieving revision 1.7
  521. diff -u -r1.7 test_mergeDependencies_basic_required_uri.phpt
  522. --- PEAR_Downloader_Package/test_mergeDependencies_basic_required_uri.phpt      26 May 2007 01:34:01 -0000      1.7
  523. +++ PEAR_Downloader_Package/test_mergeDependencies_basic_required_uri.phpt      24 Jan 2009 04:43:32 -0000
  524.  -15,7 +15,7 @@
  525.      'test_mergeDependencies'. DIRECTORY_SEPARATOR . 'foo-1.0.tgz';
  526.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/main-1.0.tgz', $mainpackage);
  527.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/foo-1.0.tgz', $requiredpackage);
  528. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  529. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  530.      array(array('package' => 'main', 'channel' => 'pear.php.net'), 'stable'),
  531.      array('version' => '1.1',
  532.            'info' =>
  533. Index: PEAR_Downloader_Package/test_removeDuplicates.phpt
  534. ===================================================================
  535. RCS file: /repository/pear-core/tests/PEAR_Downloader_Package/test_removeDuplicates.phpt,v
  536. retrieving revision 1.5
  537. diff -u -r1.5 test_removeDuplicates.phpt
  538. --- PEAR_Downloader_Package/test_removeDuplicates.phpt  26 May 2007 00:00:59 -0000      1.5
  539. +++ PEAR_Downloader_Package/test_removeDuplicates.phpt  24 Jan 2009 04:43:33 -0000
  540.  -12,7 +12,7 @@
  541.  $pathtopackagexml = dirname(__FILE__)  . DIRECTORY_SEPARATOR .
  542.      'test_initialize_downloadurl'. DIRECTORY_SEPARATOR . 'test-1.0.tgz';
  543.  $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/test-1.0.tgz', $pathtopackagexml);
  544. -$GLOBALS['pearweb']->addXmlrpcConfig('pear.php.net', 'package.getDownloadURL',
  545. +$GLOBALS['pearweb']->addRestConfig('pear.php.net', 'package.getDownloadURL',
  546.      array(array('package' => 'test', 'channel' => 'pear.php.net', 'group' => 'subgroup'), 'stable'),
  547.      array('version' => '1.0',
  548.            'info' =>
clone this paste RAW Paste Data