{"action":"closed","issue":{"url":"https://api.github.com/repos/maphew/apt/issues/24","labels_url":"https://api.github.com/repos/maphew/apt/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/maphew/apt/issues/24/comments","events_url":"https://api.github.com/repos/maphew/apt/issues/24/events","html_url":"https://github.com/maphew/apt/issues/24","id":59069389,"number":24,"title":"apt.py crashes on reading setup.ini with no 'install' key","user":{"login":"amr66","id":10866105,"avatar_url":"https://avatars.githubusercontent.com/u/10866105?v=3","gravatar_id":"","url":"https://api.github.com/users/amr66","html_url":"https://github.com/amr66","followers_url":"https://api.github.com/users/amr66/followers","following_url":"https://api.github.com/users/amr66/following{/other_user}","gists_url":"https://api.github.com/users/amr66/gists{/gist_id}","starred_url":"https://api.github.com/users/amr66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amr66/subscriptions","organizations_url":"https://api.github.com/users/amr66/orgs","repos_url":"https://api.github.com/users/amr66/repos","events_url":"https://api.github.com/users/amr66/events{/privacy}","received_events_url":"https://api.github.com/users/amr66/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T13:06:31Z","updated_at":"2015-02-26T21:07:13Z","closed_at":"2015-02-26T21:07:13Z","body":"With the last update() of setup.ini i recognized that grass71-devel has no entry for install.\r\nSo in parse_setup_ini() this will cause an KeyError Exception:\r\n\r\nd['zip_path'],d['zip_size'],d['md5'] = d['install'].split()\r\n\r\nyou could change it to\r\ntry:\r\n            d['zip_path'],d['zip_size'],d['md5'] = d['install'].split()\r\nexcept KeyError:\r\n            print \"warning: \", d['name'],  \"has no entry install\"\r\n            d['zip_path'],d['zip_size'],d['md5'] = ('','','')\r\n\r\nBut this causes errors later, if one tries to access that information, e.g. on download/install"}}