{"action":"created","issue":{"url":"https://api.github.com/repos/hughsie/PackageKit/issues/15","labels_url":"https://api.github.com/repos/hughsie/PackageKit/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/hughsie/PackageKit/issues/15/comments","events_url":"https://api.github.com/repos/hughsie/PackageKit/issues/15/events","html_url":"https://github.com/hughsie/PackageKit/issues/15","id":45097594,"number":15,"title":"alpm: pacman updates are not tracked","user":{"login":"fbourigault","id":1116116,"avatar_url":"https://avatars.githubusercontent.com/u/1116116?v=3","gravatar_id":"","url":"https://api.github.com/users/fbourigault","html_url":"https://github.com/fbourigault","followers_url":"https://api.github.com/users/fbourigault/followers","following_url":"https://api.github.com/users/fbourigault/following{/other_user}","gists_url":"https://api.github.com/users/fbourigault/gists{/gist_id}","starred_url":"https://api.github.com/users/fbourigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbourigault/subscriptions","organizations_url":"https://api.github.com/users/fbourigault/orgs","repos_url":"https://api.github.com/users/fbourigault/repos","events_url":"https://api.github.com/users/fbourigault/events{/privacy}","received_events_url":"https://api.github.com/users/fbourigault/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hughsie/PackageKit/labels/Backend:%20alpm%20(Arch%20Linux)","name":"Backend: alpm (Arch Linux)","color":"bfe5bf"},{"url":"https://api.github.com/repos/hughsie/PackageKit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"fbourigault","id":1116116,"avatar_url":"https://avatars.githubusercontent.com/u/1116116?v=3","gravatar_id":"","url":"https://api.github.com/users/fbourigault","html_url":"https://github.com/fbourigault","followers_url":"https://api.github.com/users/fbourigault/followers","following_url":"https://api.github.com/users/fbourigault/following{/other_user}","gists_url":"https://api.github.com/users/fbourigault/gists{/gist_id}","starred_url":"https://api.github.com/users/fbourigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbourigault/subscriptions","organizations_url":"https://api.github.com/users/fbourigault/orgs","repos_url":"https://api.github.com/users/fbourigault/repos","events_url":"https://api.github.com/users/fbourigault/events{/privacy}","received_events_url":"https://api.github.com/users/fbourigault/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-10-07T11:44:12Z","updated_at":"2015-02-03T20:54:15Z","closed_at":null,"body":"From Jan de Groot :\r\n> System updates by pacman are not tracked, after running pacman –Syu packageKit will not see that updates are already installed\r\n\r\nFrom kalev :\r\n> the plan is to set up a file monitor on the package database file and use it to remove the prepared updates if anything external touches the database\r\n\r\nThe alpm local database is a directory tree. Here is the structure :\r\n```\r\n/var/lib/pacman/local/\r\n├── aalib-1.4rc5-10\r\n│   ├── desc\r\n│   ├── files\r\n│   ├── install\r\n│   └── mtree\r\n├── accountsservice-0.6.38-1\r\n│   ├── desc\r\n│   ├── files\r\n│   └── mtree\r\n├── acl-2.2.52-2\r\n│   ├── desc\r\n│   ├── files\r\n│   └── mtree\r\n├── alsa-lib-1.0.28-1\r\n│   ├── desc\r\n│   ├── files\r\n│   └── mtree\r\n├── alsa-plugins-1.0.28-2\r\n│   ├── desc\r\n...\r\n```\r\nWatching the `/var/lib/pacman/local/` directory for changes should be enough.\r\n\r\nAs this will be implemented in the backend code, I'm waiting for the Hif implementation and then will do the alpm one."},"comment":{"url":"https://api.github.com/repos/hughsie/PackageKit/issues/comments/72732516","html_url":"https://github.com/hughsie/PackageKit/issues/15#issuecomment-72732516","issue_url":"https://api.github.com/repos/hughsie/PackageKit/issues/15","id":72732516,"user":{"login":"fbourigault","id":1116116,"avatar_url":"https://avatars.githubusercontent.com/u/1116116?v=3","gravatar_id":"","url":"https://api.github.com/users/fbourigault","html_url":"https://github.com/fbourigault","followers_url":"https://api.github.com/users/fbourigault/followers","following_url":"https://api.github.com/users/fbourigault/following{/other_user}","gists_url":"https://api.github.com/users/fbourigault/gists{/gist_id}","starred_url":"https://api.github.com/users/fbourigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbourigault/subscriptions","organizations_url":"https://api.github.com/users/fbourigault/orgs","repos_url":"https://api.github.com/users/fbourigault/repos","events_url":"https://api.github.com/users/fbourigault/events{/privacy}","received_events_url":"https://api.github.com/users/fbourigault/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T20:54:15Z","updated_at":"2015-02-03T20:54:15Z","body":"In which case I need to invalidate the database ? I think change in the local db (i.e Package was installed/upgraded/downgraded/re-installed/removed). Does I also need to watch for repos package list refresh ? And did I missed an other case ? cc @kalev @hughsie "}}