Detect whether apt-get update has been run recently
Bug #1091129 reported by
Björn Tillenius
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
Currently we don't run apt-get update more often than a certain time period
in landscape-client. However, we only track when the client initiated the apt-get
run, it could be something else on the system that also runs apt-get update.
We should try to detect whether someone else has run apt-get update recently,
and don't run it ourselves, if that's the case.
It should be possible to look at the files in /var/lib/apt/lists to see when they were
last changed. It's unclear whether we can detect an update that didn't contained
any new packages.
Related branches
lp://staging/~ack/landscape-client/check-update-success-stamp
- Björn Tillenius (community): Approve
- Thomas Herve (community): Approve
-
Diff: 136 lines (+87/-7)2 files modifiedlandscape/package/reporter.py (+12/-7)
landscape/package/tests/test_reporter.py (+75/-0)
tags: | removed: kanban |
Changed in landscape-client: | |
assignee: | nobody → Alberto Donato (ack) |
status: | New → In Progress |
Changed in landscape-client: | |
milestone: | none → 13.01 |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.