diff --git a/debian/patches/0003-Revert-fix-empty-mirror-check.patch b/debian/patches/0003-Revert-fix-empty-mirror-check.patch new file mode 100644 index 00000000..e0ecfb4d --- /dev/null +++ b/debian/patches/0003-Revert-fix-empty-mirror-check.patch @@ -0,0 +1,22 @@ +From: =?utf-8?q?Andr=C3=A9_Roth?= +Date: Sat, 11 Jan 2025 19:17:28 +0100 +Subject: Revert "fix empty mirror check" + +This reverts commit 09a44ba409e82da2ff69a6927a95824ca8f86c2f. +--- + deb/snapshot.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deb/snapshot.go b/deb/snapshot.go +index f2a0d38..0457f25 100644 +--- a/deb/snapshot.go ++++ b/deb/snapshot.go +@@ -45,7 +45,7 @@ type Snapshot struct { + + // NewSnapshotFromRepository creates snapshot from current state of repository + func NewSnapshotFromRepository(name string, repo *RemoteRepo) (*Snapshot, error) { +- if repo.packageRefs == nil || repo.packageRefs.Len() == 0 { ++ if repo.packageRefs == nil { + return nil, errors.New("mirror not updated") + } + diff --git a/debian/patches/0003-Don-t-run-swagger-related-or-modules-tasks-before-te.patch b/debian/patches/0004-Don-t-run-swagger-related-or-modules-tasks-before-te.patch similarity index 100% rename from debian/patches/0003-Don-t-run-swagger-related-or-modules-tasks-before-te.patch rename to debian/patches/0004-Don-t-run-swagger-related-or-modules-tasks-before-te.patch diff --git a/debian/patches/series b/debian/patches/series index fa7407f5..1b24f2cd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-disable-swagger.patch 0002-disable-new-azure-sdk.patch -0003-Don-t-run-swagger-related-or-modules-tasks-before-te.patch +0003-Revert-fix-empty-mirror-check.patch +0004-Don-t-run-swagger-related-or-modules-tasks-before-te.patch