Page MenuHomeSoftware Heritage

debian: Update last_update for a package when required
ClosedPublic

Authored by anlambert on Dec 3 2021, 5:50 PM.

Details

Summary

A debian package can have sources coming from multiple suites
so we need to ensure to update the last_update field in the
ListedOrigin model if the current processed suite has a greater
modification time for its sources index.

Related to T2400

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6744 (id=24488)

Rebasing onto 93f17d4d9c...

Current branch diff-target is up to date.
Changes applied before test
commit 47b3e270c88d0f7bebfa19c7056a5ba0974a3d4e
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Dec 3 17:46:07 2021 +0100

    debian: Update last_update for a package when required
    
    A debian package can have sources coming from multiple suites
    so we need to ensure to update the last_update field in the
    ListedOrigin model if the current processed suite has a greater
    modification time for its sources index.
    
    Related to T2400

See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/429/ for more details.

ardumont added a subscriber: ardumont.

lgtm

one suggestion inline.

swh/lister/debian/tests/test_lister.py
74–92

?

This revision is now accepted and ready to land.Dec 6 2021, 10:23 AM

Build is green

Patch application report for D6744 (id=24496)

Rebasing onto 93f17d4d9c...

Current branch diff-target is up to date.
Changes applied before test
commit 15fa84cf7e35608a0a7a7bd4b0f9e5baeb90742d
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Dec 3 17:46:07 2021 +0100

    debian: Update last_update for a package when required
    
    A debian package can have sources coming from multiple suites
    so we need to ensure to update the last_update field in the
    ListedOrigin model if the current processed suite has a greater
    modification time for its sources index.
    
    Related to T2400

See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/430/ for more details.