Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
cdist
cdist
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 10
    • Merge Requests 10
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ungleich-public
  • cdistcdist
  • Merge Requests
  • !858

Merged
Opened Mar 28, 2020 by matze@matzeContributor
  • Report abuse
Report abuse

[__package_update_index] Fix maxage false-positives on brand-new installations

  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 2

This merge request fixes the bug #803 (closed) by using -1 as value if no age of the latest index update could be found. This value will be checked separately when the max age is checked.

This can be tested by removing the file which will be used to detect the age of the latest index update. On apt systems, this is done as follow:

rm /var/cache/apt/pkgcache.bin

Before the fix, it won't update the package index after the file was removed, even if --maxage 1 is given. With the fix, the package update will be done immediately.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: ungleich-public/cdist!858
Source branch: fix/__package_update_index

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.