summaryrefslogtreecommitdiff
path: root/pkgtools/lintpkgsrc/files/t
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2022-08-17 17:26:35 +0000
committerrillig <rillig@pkgsrc.org>2022-08-17 17:26:35 +0000
commit4f7f4961be913ec4382b10b07f5a169c82015d23 (patch)
tree609bef4ef974382741aed47896034d20ee923e9f /pkgtools/lintpkgsrc/files/t
parent2291a4fcafc5362ea570311eb01b7907319989f3 (diff)
downloadpkgsrc-4f7f4961be913ec4382b10b07f5a169c82015d23.tar.gz
lintpkgsrc: cleanup: move loading and storing of package data together
Diffstat (limited to 'pkgtools/lintpkgsrc/files/t')
-rw-r--r--pkgtools/lintpkgsrc/files/t/packages.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/lintpkgsrc/files/t/packages.t b/pkgtools/lintpkgsrc/files/t/packages.t
index 5671b14449a..a3c87b88bb1 100644
--- a/pkgtools/lintpkgsrc/files/t/packages.t
+++ b/pkgtools/lintpkgsrc/files/t/packages.t
@@ -1,4 +1,4 @@
-# $NetBSD: packages.t,v 1.16 2022/08/16 20:54:35 rillig Exp $
+# $NetBSD: packages.t,v 1.17 2022/08/17 17:26:36 rillig Exp $
#
# Tests for the internal package database, which stores the packages and their
# versions, and a few variables like DEPENDS and BROKEN.
@@ -104,7 +104,7 @@ sub test_package_variables() {
}
# Demonstrate how the package data is stored in the cache file.
-sub test_store_order() {
+sub test_pkgdata_store() {
my $pkgdata = PkgData->new();
my $pkgbase_1_0 = $pkgdata->add('pkgbase', '1.0');
@@ -120,7 +120,7 @@ sub test_store_order() {
$pkgbase_1_15->var('COMMENT', 'Version 1.15');
my $tmpfile = File::Temp->new();
- store_pkgdata_in_cache($pkgdata, $tmpfile->filename);
+ $pkgdata->store($tmpfile->filename);
my $stored = read_file($tmpfile->filename);
# XXX: 1.3nb4 should be sorted before 1.15.
@@ -141,4 +141,4 @@ test_pkgver();
test_pkgs();
test_pkgdata();
test_package_variables();
-test_store_order();
+test_pkgdata_store();