Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-07-19 18:02:59 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-07-19 19:47:15 +0300
commite79064972edfad6a12fe0a27e8dceb63fe5550dc (patch)
tree42b4a812d87abaabf49da029b0ecc1ca68e9f04c /test
parent2f15254c8bfb477a78ab15102c9844d542f42e36 (diff)
package.delete() also deletes empty packages
Once a Package object no longer contains any files (archives or hints), it can be removed from the package set. (This fixes calm complaining when it wants to vault a stale package which had source, but no kept version does. Otherwise it complains that the source package has no versions) Also remove removed hints from version_hints, since we iterate over that in some places. This also prevents removed versions from bogusly appearing in packages.json, so update test data appropriately.
Diffstat (limited to 'test')
-rw-r--r--test/testdata/process_arch/packages.json.expected5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/testdata/process_arch/packages.json.expected b/test/testdata/process_arch/packages.json.expected
index f639e3c..05e4168 100644
--- a/test/testdata/process_arch/packages.json.expected
+++ b/test/testdata/process_arch/packages.json.expected
@@ -282,7 +282,6 @@
' "summary": "Perl distribution Net-SMTP-SSL",\n'
' "versions": {\n'
' "stable": [\n'
- ' "1.01-1",\n'
' "1.02-1",\n'
' "1.03-1",\n'
' "1.03-2"\n'
@@ -330,13 +329,10 @@
' "summary": "Test package for stale version removal",\n'
' "versions": {\n'
' "stable": [\n'
- ' "240-1",\n'
- ' "242-0",\n'
' "243-0",\n'
' "250-0"\n'
' ],\n'
' "test": [\n'
- ' "251-0",\n'
' "260-0"\n'
' ]\n'
' }\n'
@@ -430,7 +426,6 @@
' "summary": "A test package",\n'
' "versions": {\n'
' "stable": [\n'
- ' "0.1-1",\n'
' "1.0-1"\n'
' ]\n'
' }\n'