{"action":"created","issue":{"url":"https://api.github.com/repos/archlinuxcn/repo/issues/132","labels_url":"https://api.github.com/repos/archlinuxcn/repo/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/archlinuxcn/repo/issues/132/comments","events_url":"https://api.github.com/repos/archlinuxcn/repo/issues/132/events","html_url":"https://github.com/archlinuxcn/repo/issues/132","id":98846141,"number":132,"title":"nvchecker.ini pkg option: use github rather than aur if possible?","user":{"login":"0x01f7","id":11257791,"avatar_url":"https://avatars.githubusercontent.com/u/11257791?v=3","gravatar_id":"","url":"https://api.github.com/users/0x01f7","html_url":"https://github.com/0x01f7","followers_url":"https://api.github.com/users/0x01f7/followers","following_url":"https://api.github.com/users/0x01f7/following{/other_user}","gists_url":"https://api.github.com/users/0x01f7/gists{/gist_id}","starred_url":"https://api.github.com/users/0x01f7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x01f7/subscriptions","organizations_url":"https://api.github.com/users/0x01f7/orgs","repos_url":"https://api.github.com/users/0x01f7/repos","events_url":"https://api.github.com/users/0x01f7/events{/privacy}","received_events_url":"https://api.github.com/users/0x01f7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-03T21:56:00Z","updated_at":"2015-08-04T14:36:40Z","closed_at":null,"body":"nvchecker 似乎无法处理 AUR 的自动更新，例如 python2-powerline-git；鉴于其软件仓库存储于 GitHub 之上，能否改用 github 参数，以便构建出最新副本？\r\n\r\n存储于 GitHub 的 AUR 列表如下（部分可能需要修改 PKGBUILD 文件）： \r\n\r\n+ [ ] dnsmasq-china-list-git, felixonmars/dnsmasq-china-list, [aur](https://aur.archlinux.org/packages/dnsmasq-china-list-git) ---- @felixonmars \r\n+ [ ] nyancat-git, klange/nyancat, [aur](https://aur.archlinux.org/packages/nyancat-git) ---- @felixonmars \r\n+ [x] mitmproxy-git\r\n+ [x] python-http-parser-git\r\n+ [x] zsh-completions-git\r\n+ [ ] python2-powerline-git, powerline/powerline, [aur](https://aur.archlinux.org/packages/python2-powerline-git) ---- @mapleray \r\n+ [ ] libqtxdg-git, baumgarr/nixnote2, [aur](https://aur.archlinux.org/packages/nixnote2-git) ---- @ykelvis \r\n+ [ ] libsysstat-git, lxde/libsysstat, [aur](https://aur.archlinux.org/packages/libsysstat-git) ---- @ykelvis \r\n+ [ ] obkey-git, stevenhoneyman/obkey, [aur](https://aur.archlinux.org/packages/obkey-git) ---- @ykelvis  \r\n+ [ ] corebird-git, baedert/corebird, [aur](https://aur.archlinux.org/packages/corebird-git) ---- @ykelvis \r\n+ [ ] GGLucas/eminent, [aur](https://aur.archlinux.org/packages/eminent-awesome34-git) ---- @farseerfc \r\n+ [x] goimports-git\r\n+ [x] okular-backend-mupdf-git\r\n+ [ ] mkinitcpio-colors-git, EvanPurkhiser/mkinitcpio-colors, [aur](https://aur.archlinux.org/packages/mkinitcpio-colors-git) ---- @colinkeenan  \r\n+ [ ] setcolors-git, EvanPurkhiser/linux-vt-setcolors, [aur](https://aur.archlinux.org/packages/setcolors-git) ---- @colinkeenan \r\n+ [ ] numix-icon-theme-circle, numixproject/numix-icon-theme-circle, [aur](https://aur.archlinux.org/packages/numix-circle-icon-theme-git) ---- @colinkeenan \r\n+ [ ] numix-icon-theme-git, numixproject/numix-icon-theme, [aur](https://aur.archlinux.org/packages/numix-icon-theme-git) ---- @colinkeenan \r\n+ [ ] paper-gtk-theme-git, snwh/paper-gtk-theme, [aur](https://aur.archlinux.org/packages/paper-gtk-theme-git) ---- @inkn \r\n+ [ ] paper-icon-theme-git, snwh/paper-icon-theme, [aur](https://aur.archlinux.org/packages/paper-icon-theme-git) ---- @inkn \r\n+ [ ] spek-git, alexkay/spek, [aur](https://aur.archlinux.org/packages/spek-git) ---- @inkn \r\n+ [ ] baka-mplayer-git, u8sand/Baka-MPlayer, [aur](https://aur.archlinux.org/packages/baka-mplayer-git) ---- ???\r\n+ [ ] pcmanfm-qt-git, lxde/pcmanfm-qt, [aur](https://aur.archlinux.org/packages/pcmanfm-qt-git) ---- ???\r\n+ [ ] go-for-it-git, mank319/Go-For-It, [aur](https://aur.archlinux.org/packages/go-for-it-git) ---- ??? \r\n+ [ ] libwebqq-git, wxjeacen/libwebqqboost, [aur](https://aur.archlinux.org/packages/libwebqq-git) ---- ???\r\n+ [ ] pdf2htmlex-git, coolwanglu/pdf2htmlEX, [aur](https://aur.archlinux.org/packages/pdf2htmlex-git) ---- ???\r\n+ [ ] pkgbuild-introspection-git, falconindy/pkgbuild-introspection, [aur](https://aur.archlinux.org/packages/pkgbuild-introspection-git) ---- ???\r\n+ [ ] plasma-next-icons-git, NitruxSA/plasma-next-icons, [aur](https://aur.archlinux.org/packages/plasma-next-icons-git) ---- ???\r\n+ [ ] qterminal-git, qterminal/qterminal, [aur](https://aur.archlinux.org/packages/qterminal-git) ---- ??? \r\n+ [ ] qtermwidget-git, qterminal/qtermwidget, [aur](https://aur.archlinux.org/packages/qtermwidget-git) ---- ??? \r\n+ [ ] telegram-git, vysheng/tg, [aur](https://aur.archlinux.org/packages/telegram-git) ---- ??? \r\n+ [ ] webogram-git, zhukov/webogram, [aur](https://aur.archlinux.org/packages/webogram-git) ---- ??? \r\n+ [ ] xiami-downloader-git, timothyqiu/xiami-downloader.git, [aur](https://aur.archlinux.org/packages/xiami-downloader-git) ---- ???\r\n+ [ ] screengrab-git, QtDesktop/screengrab, [aur](https://aur.archlinux.org/packages/screengrab-git) ---- ???\r\n+ [ ] systemtap-git, fche/systemtap, [aur](https://aur.archlinux.org/packages/systemtap-git) ---- ???\r\n\r\n\r\n----------------------\r\n\r\n附录：获取上述列表的相关代码：\r\n\r\n```ruby\r\nrequire 'httparty'\r\nrequire 'inifile'\r\n\r\n\r\naur_in_github = []\r\nfile = IniFile.load('./nvchecker.ini')\r\nfile.each_section do |sec|\r\n  next if sec == '__config__'\r\n\r\n  print \"processing: #{sec} :: \"\r\n\r\n  unless file[sec].key?('aur') && sec.end_with?('-git')\r\n    puts \"skip\"\r\n    next\r\n  end\r\n\r\n  resp = HTTParty.get('https://aur.archlinux.org/rpc.php', query: { type: 'info', arg: sec })\r\n  unless resp.code == 200\r\n    puts \"resp_code_error :: #{resp.code}\"\r\n    next\r\n  end\r\n\r\n  body = JSON.parse(resp.body)\r\n  unless body['type'] == 'info'\r\n    puts \"resp_type_error :: #{resp.body}\"\r\n    next\r\n  end\r\n\r\n  resultcount = body['resultcount']\r\n  unless resultcount == 1\r\n    puts \"resp_rcnt_error :: #{resp.body}\"\r\n    next\r\n  end\r\n\r\n  uri = body['results']['URL']\r\n  unless uri.start_with?('https://github.com/')\r\n    puts \"ignore :: #{uri}\"\r\n    next\r\n  end\r\n\r\n  puts \"add :: #{uri}\"\r\n  aur_in_github << { name: sec, uri: uri }\r\nend\r\n\r\nputs ''; puts ''; puts '-' * 120; puts '-' * 120\r\naur_in_github.each do |aur|\r\n  puts \"+ #{aur[:name]}\"\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/archlinuxcn/repo/issues/comments/127634662","html_url":"https://github.com/archlinuxcn/repo/issues/132#issuecomment-127634662","issue_url":"https://api.github.com/repos/archlinuxcn/repo/issues/132","id":127634662,"user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T14:36:40Z","updated_at":"2015-08-04T14:36:40Z","body":"是对的。\r\n\r\nlilac 的更新和更新检查是分开的。也就是是，完全可以在 github 上有更新的时候，去 AUR 取脚本。\r\n\r\n反正包是谁维护的，谁决定怎么做。另外有计划做更新检查和通知，这样就不用手动报告 out-of-date 了。"}}