{"action":"created","issue":{"url":"https://api.github.com/repos/composer/satis/issues/95","labels_url":"https://api.github.com/repos/composer/satis/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/composer/satis/issues/95/comments","events_url":"https://api.github.com/repos/composer/satis/issues/95/events","html_url":"https://github.com/composer/satis/issues/95","id":20960922,"number":95,"title":"Error while mirroring PEAR repository","user":{"login":"sergehardy","id":990737,"avatar_url":"https://avatars.githubusercontent.com/u/990737?v=3","gravatar_id":"","url":"https://api.github.com/users/sergehardy","html_url":"https://github.com/sergehardy","followers_url":"https://api.github.com/users/sergehardy/followers","following_url":"https://api.github.com/users/sergehardy/following{/other_user}","gists_url":"https://api.github.com/users/sergehardy/gists{/gist_id}","starred_url":"https://api.github.com/users/sergehardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergehardy/subscriptions","organizations_url":"https://api.github.com/users/sergehardy/orgs","repos_url":"https://api.github.com/users/sergehardy/repos","events_url":"https://api.github.com/users/sergehardy/events{/privacy}","received_events_url":"https://api.github.com/users/sergehardy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/satis/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-10-14T14:49:30Z","updated_at":"2015-11-21T11:37:18Z","closed_at":"2015-11-21T11:37:18Z","body":"Hi,\r\n\r\nI am trying to put up a PEAR mirror in order to handle legacy packages such as Net_FTP or so. \r\n\r\nIt's working great by adding PEAR repositories to the client's local config.json file, but I need to centralize the list of PEAR repositories.\r\n\r\nI have set up a specific Satis mirror for PEAR repositories, which seems to be correctly configured.\r\n\r\nHere is the local config.json:\r\n\r\n```json\r\n{\r\n    \"config\": {\r\n        \"github-protocols\": [\"https\", \"git\"],\r\n        \"preferred-install\": \"dist\",\r\n        \"cache-files-ttl\": 0\r\n\r\n    },\r\n    \"repositories\": {\r\n       ...\r\n        \"pear-mirror\": {\r\n            \"type\": \"composer\",\r\n            \"url\": \"http://*****/repositories/pear\"\r\n        }\r\n   }\r\n}\r\n```\r\n\r\nHere is the repository config:\r\n\r\n```json\r\n{\r\n\t\"repositories\": [\r\n        {\r\n            \"type\": \"pear\",\r\n            \"url\": \"http://pear2.php.net\"\r\n        },\r\n        {\r\n            \"type\": \"pear\",\r\n            \"url\": \"http://pear.php.net\"\r\n        },        \r\n        ***\r\n\t],\r\n\t\"require-dependencies\": true,\r\n        \"require\": {\r\n\t\t\t\"pear-pear/Net_FTP\": \"*\",\r\n\t\t\t****\r\n\r\n\t},\r\n\t\"archive\": {\r\n\t\t\"directory\": \"dist\",\r\n\t\t\"prefix-url\": \"http://****/repositories/pear\",\r\n\t\t\"format\": \"zip\",\r\n\t\t\"skip-dev\": false\r\n\t}\r\n}\r\n```\r\n\r\n\r\n\r\nThis config is validated by a search on the client side:\r\n\r\n\r\n```\r\n>>> composer show pear-pear.php.net/Net_FTP\r\nname     : pear-pear.php.net/Net_FTP\r\ndescrip. : Net_FTP allows you to communicate with FTP servers in a more comfortable way\r\nthan the native FTP functions of PHP do. The class implements everything natively\r\nsupported by PHP and additionally features like recursive up- and downloading,\r\ndircreation and chmodding. It also implements an observer pattern to allow\r\nfor example the view of a progress bar.\r\nkeywords : \r\nversions : 1.4.0a3, 1.4.0a2, 1.4.0a1, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.3.0RC2, 1.3.0RC1, 1.3.0beta4, 1.3.0beta3, 1.3.0beta2, 1.3.0beta1, 1.2, 1.1, 1.0, 0.9, 0.5\r\ntype     : pear-library\r\nlicense  : \r\nsource   : []  \r\ndist     : [zip] http://***/repositories/pear/dist/pear-pear.php.net-net_ftp-1.4.0a3.zip 1.4.0a3\r\nnames    : pear-pear.php.net/net_ftp, pear-pear/net_ftp\r\n...\r\n```\r\n\r\n\r\n\r\n\r\nBut when I require the package an exception is thrown. \r\n\r\n```\r\n>>> composer require  \"pear-pear.php.net/Net_FTP *\"\r\n./composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing pear-pear.php.net/net_ftp (1.3.7)\r\n    Downloading: 100%         \r\n\r\n                                                                                                                                      \r\n  [UnexpectedValueException]                                                                                                          \r\n  PEAR package file is not found at /home/***/.composer/test/vendor/pear-pear.php.net/Net_FTP/pear-pear.php.net-net_ftp-1.3.7.zip  \r\n```\r\n\r\nIs this a bug or am I missing something?\r\n\r\nThanx\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/composer/satis/issues/comments/158629478","html_url":"https://github.com/composer/satis/issues/95#issuecomment-158629478","issue_url":"https://api.github.com/repos/composer/satis/issues/95","id":158629478,"user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T11:37:18Z","updated_at":"2015-11-21T11:37:18Z","body":"Closing, please re-open if this is still a concern."}}