{"action":"created","issue":{"url":"https://api.github.com/repos/dimitri/el-get/issues/2358","repository_url":"https://api.github.com/repos/dimitri/el-get","labels_url":"https://api.github.com/repos/dimitri/el-get/issues/2358/labels{/name}","comments_url":"https://api.github.com/repos/dimitri/el-get/issues/2358/comments","events_url":"https://api.github.com/repos/dimitri/el-get/issues/2358/events","html_url":"https://github.com/dimitri/el-get/issues/2358","id":145389167,"number":2358,"title":"Installing ':type apt-get' ignores ':pkgname' and uses ':name' instead","user":{"login":"manandbytes","id":133584,"avatar_url":"https://avatars.githubusercontent.com/u/133584?v=3","gravatar_id":"","url":"https://api.github.com/users/manandbytes","html_url":"https://github.com/manandbytes","followers_url":"https://api.github.com/users/manandbytes/followers","following_url":"https://api.github.com/users/manandbytes/following{/other_user}","gists_url":"https://api.github.com/users/manandbytes/gists{/gist_id}","starred_url":"https://api.github.com/users/manandbytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manandbytes/subscriptions","organizations_url":"https://api.github.com/users/manandbytes/orgs","repos_url":"https://api.github.com/users/manandbytes/repos","events_url":"https://api.github.com/users/manandbytes/events{/privacy}","received_events_url":"https://api.github.com/users/manandbytes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-02T16:10:27Z","updated_at":"2016-04-02T22:51:10Z","closed_at":null,"body":"I have these two definitions:\r\n\r\n    (el-get-bundle js2-mode :type apt-get :pkgname \"elpa-js2-mode\")\r\n    (el-get-bundle skewer-mode) ;; has :depends (simple-httpd js2-mode)\r\n\r\nWhen starting Emacs, Messages buffer shows that el-get tries to install `js2-mode` and not `elpa-js2-mode` with `apt-get install js2-mode`:\r\n\r\n    Package js2-mode previously failed to install, removing it first.\r\n    .loaddefs.el has auto save data; consider M-x recover-this-file\r\n    el-get: updating autoloads for js2-mode\r\n    el-get: byte-compiling autoload file\r\n    js2-mode removed: This package has been removed successfully by el-get.\r\n    el-get remove js2-mode\r\n    el-get is waiting for \"*apt-get install js2-mode*\" to complete\r\n    js2-mode failed to install: (error el-get: *apt-get install js2-mode* Could not install package js2-mode.)\r\n    Package js2-mode previously failed to install, removing it first.\r\n    el-get: updating autoloads for js2-mode\r\n    el-get: byte-compiling autoload file\r\n    js2-mode removed: This package has been removed successfully by el-get.\r\n    el-get remove js2-mode\r\n    el-get is waiting for \"*apt-get install js2-mode*\" to complete\r\n    js2-mode failed to install: (error el-get: *apt-get install js2-mode* Could not install package js2-mode.)\r\n    el-get is waiting for \"*git clone skewer-mode*\" to complete\r\n    el-get: Package skewer-mode installed.\r\n    el-get is waiting for \"*git submodule update*\" to complete\r\n    el-get: git submodule update ok\r\n    el-get is waiting for \"byte-compile\" to complete\r\n    el-get: el-get-build skewer-mode: byte-compile ok.\r\n    el-get: updating autoloads for skewer-mode\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dimitri/el-get/issues/comments/204816702","html_url":"https://github.com/dimitri/el-get/issues/2358#issuecomment-204816702","issue_url":"https://api.github.com/repos/dimitri/el-get/issues/2358","id":204816702,"user":{"login":"npostavs","id":287742,"avatar_url":"https://avatars.githubusercontent.com/u/287742?v=3","gravatar_id":"","url":"https://api.github.com/users/npostavs","html_url":"https://github.com/npostavs","followers_url":"https://api.github.com/users/npostavs/followers","following_url":"https://api.github.com/users/npostavs/following{/other_user}","gists_url":"https://api.github.com/users/npostavs/gists{/gist_id}","starred_url":"https://api.github.com/users/npostavs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npostavs/subscriptions","organizations_url":"https://api.github.com/users/npostavs/orgs","repos_url":"https://api.github.com/users/npostavs/repos","events_url":"https://api.github.com/users/npostavs/events{/privacy}","received_events_url":"https://api.github.com/users/npostavs/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T22:51:10Z","updated_at":"2016-04-02T22:51:10Z","body":"Just looking at the source, I *think* this just a problem of messaging, and the actual `apt-get` command is using `:pkgname`, see [el-get-apt-get-install][1]:\r\n\r\n```elisp\r\n(defun el-get-apt-get-install (package url post-install-fun)\r\n  \"echo $pass | sudo -S apt-get install PACKAGE\"\r\n  (let* ((source  (el-get-package-def package))\r\n         (pkgname (or (plist-get source :pkgname) (el-get-as-string package)))\r\n         (name (format \"*apt-get install %s*\" package))\r\n         ...)\r\n\r\n    (el-get-start-process-list\r\n     ...\r\n                      :command-name ,name\r\n                      :program ,(el-get-executable-find \"sudo\")\r\n                      :args (\"-S\" ,el-get-apt-get \"install\" ,pkgname)\r\n     ...\r\n```\r\n\r\n[1]: https://github.com/dimitri/el-get/blob/45b5d9a338c4da6b7fd1b20f06b88eb30026aeb6/methods/el-get-apt-get.el#L125-L142"}}