diff options
-rw-r--r-- | libbpkg/manifest.cxx | 82 | ||||
-rw-r--r-- | libbpkg/manifest.hxx | 20 | ||||
-rw-r--r-- | tests/manifest/testscript | 562 |
3 files changed, 343 insertions, 321 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx index d14437b..35df21d 100644 --- a/libbpkg/manifest.cxx +++ b/libbpkg/manifest.cxx @@ -55,7 +55,7 @@ namespace bpkg if (s.size () != 64) return false; - for (const char& c: s) + for (char c: s) { if ((c < 'a' || c > 'f' ) && !digit (c)) return false; @@ -2410,22 +2410,6 @@ namespace bpkg // repository_manifest // - repository_role repository_manifest:: - effective_role () const - { - if (role) - { - if (location.empty () != (*role == repository_role::base)) - throw logic_error ("invalid role"); - - return *role; - } - else - return location.empty () - ? repository_role::base - : repository_role::prerequisite; - } - optional<string> repository_manifest:: effective_url (const repository_location& l) const { @@ -2701,11 +2685,13 @@ namespace bpkg // - role can be omitted // - trust, url, email, summary, description and certificate are allowed // - if (r.role && r.location.empty () != (*r.role == repository_role::base)) - bad_value ("invalid role"); - bool base (r.effective_role () == repository_role::base); + if (r.location.empty () != base) + throw logic_error (r.location.empty () + ? "no location specified" + : "location not allowed"); + if (r.trust && (base || r.location.type () != repository_type::pkg)) bad_value ("trust not allowed"); @@ -2752,6 +2738,12 @@ namespace bpkg auto bad_value ([&s](const string& d) { throw serialization (s.name (), d);}); + bool b (effective_role () == repository_role::base); + + if (location.empty () != b) + throw logic_error ( + location.empty () ? "no location specified" : "location not allowed"); + s.next ("", "1"); // Start of manifest. if (!location.empty ()) @@ -2762,16 +2754,11 @@ namespace bpkg if (role) { - if (location.empty () != (*role == repository_role::base)) - bad_value ("invalid role"); - auto r (static_cast<size_t> (*role)); assert (r < repository_role_names.size ()); s.next ("role", repository_role_names[r]); } - bool b (effective_role () == repository_role::base); - if (url) { if (!b) @@ -2828,6 +2815,20 @@ namespace bpkg s.next ("", ""); // End of manifest. } + static repository_manifest empty_base; + + const repository_manifest& + find_base_repository (const vector<repository_manifest>& ms) noexcept + { + for (const repository_manifest& m: ms) + { + if (m.effective_role () == repository_role::base) + return m; + } + + return empty_base; + } + // pkg_repository_manifest // repository_manifest @@ -2878,22 +2879,23 @@ namespace bpkg bool iu, vector<repository_manifest>& ms) { - name_value nv (p.next ()); - while (!nv.empty ()) + bool base (false); + + for (name_value nv (p.next ()); !nv.empty (); nv = p.next ()) { - ms.push_back (parse_repository_manifest (p, move (nv), base_type, iu)); - nv = p.next (); + ms.push_back (parse_repository_manifest (p, nv, base_type, iu)); - // Make sure there is location in all except the last entry. + // Make sure that there is a single base repository manifest in the + // list. // - if (ms.back ().location.empty () && !nv.empty ()) - throw parsing (p.name (), nv.name_line, nv.name_column, - "repository location expected"); + if (ms.back ().effective_role () == repository_role::base) + { + if (base) + throw parsing (p.name (), nv.name_line, nv.name_column, + "base repository manifest redefinition"); + base = true; + } } - - if (ms.empty () || !ms.back ().location.empty ()) - throw parsing (p.name (), nv.name_line, nv.name_column, - "base repository manifest expected"); } // Serialize the repository manifest list. @@ -2902,12 +2904,6 @@ namespace bpkg serialize_repository_manifests (serializer& s, const vector<repository_manifest>& ms) { - if (ms.empty () || !ms.back ().location.empty ()) - throw serialization (s.name (), "base repository manifest expected"); - - // @@ Should we check that there is location in all except the last - // entry? - // for (const repository_manifest& r: ms) r.serialize (s); diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index 15d19fc..81dd5f0 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -917,16 +917,13 @@ namespace bpkg butl::optional<std::string> fragment; // Return the effective role of the repository. If the role is not - // explicitly specified (see the role member above), then calculate - // the role based on the location. Specifically, if the location is - // empty, then the effective role is base. Otherwise -- prerequisite. - // If the role is specified, then verify that it is consistent with - // the location value (that is, base if the location is empty and - // prerequisite or complement if not) and return that. Otherwise, - // throw std::logic_error. + // explicitly specified, then the base role is assumed. // repository_role - effective_role () const; + effective_role () const noexcept + { + return role ? *role : repository_role::base; + } // Return the effective web interface URL based on the specified remote // repository location. If url is not present, doesn't start with '.', or @@ -1024,6 +1021,13 @@ namespace bpkg serialize (butl::manifest_serializer&) const; }; + // Search a repository manifest list for the base repository and return its + // reference, if found. Otherwise, return a reference to an empty manifest + // instance (which is the representation of the default base). + // + LIBBPKG_EXPORT const repository_manifest& + find_base_repository (const std::vector<repository_manifest>&) noexcept; + class LIBBPKG_EXPORT signature_manifest { public: diff --git a/tests/manifest/testscript b/tests/manifest/testscript index b08206a..7521785 100644 --- a/tests/manifest/testscript +++ b/tests/manifest/testscript @@ -13,67 +13,67 @@ : Roundtrip the pkg package manifest list. : $* -pp <<EOF >>EOF - : 1 - sha256sum: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - : - name: libfoo - version: 1.2.3+2 - priority: high; Due to critical bug fix. - summary: Modern XML parser - license: LGPLv2, MIT; Both required. - license: BSD - tags: c++, xml, parser, serializer, pull, streaming, modern - description: libfoo is a very modern C++ XML parser. - changes: 1.2.3+2: applied upstream patch for critical bug bar - changes: 1.2.3+1: applied upstream patch for critical bug foo - url: http://www.example.org/projects/libfoo/; libfoo project page url - doc-url: http://www.example.org/projects/libfoo/man.xhtml; documentation page - src-url: http://scm.example.com/?p=odb/libodb.git\;a=tree; source tree - package-url: http://www.example.org/projects/libfoo/1.2.3+2; package url - email: libfoo-users@example.org; Public mailing list, posts by non-members\ - are allowed but moderated. - package-email: libfoo-1.2.3+2@example.org; Bug reports are welcome. - build-email: libfoo-builds@example.org; Mailing list for bbot notification\ - emails. - depends: libz - depends: libgnutls <= 1.2.3 | libopenssl >= 2.3.4 - depends: ? libboost-regex >= 1.52.0; Only if C++ compiler does not support\ - C++11 <regex>. - depends: ? libqtcore >= 5.0.0; Only if GUI is enabled. - requires: linux | windows | macosx; symbian is coming. - requires: c++11 - requires: ? ; VC++ 12.0 or later if targeting Windows. - requires: ? ; libc++ standard library if using Clang on Mac OS X. - requires: zlib; Most Linux/UNIX systems already have one; or get it at\ - www.zlib.net. - build-include: linux* - build-include: freebsd* - build-exclude: *; Only supports Linux and FreeBSD. - location: libfoo-1.2.3+2.tar.bz2 - sha256sum: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - : - name: libbar - version: 3.4A.5+6 - summary: Modern bar management framework - license: LGPLv2 - tags: c++, xml, modern - url: http://www.example.org/projects/libbar/ - email: libbar-users@example.org - build-email: - depends: libbaz (1- 2-) | libbaz [3 4-) | libbaz (5 6] | libbaz [7 8] - build-exclude: *-msvc_14*/i?86-*; Linker crash. - location: bar/libbar-3.4A.5+6.tbz - sha256sum: d4b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - : - name: libbaz - version: 2~3.4A.5+3 - summary: Modern baz system - license: LGPLv2 - url: http://www.example.org/projects/libbar/ - email: libbaz-users@example.org - location: libbaz/libbaz-2~3.4A.5+3.tar.gz - sha256sum: b5b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - EOF + : 1 + sha256sum: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + : + name: libfoo + version: 1.2.3+2 + priority: high; Due to critical bug fix. + summary: Modern XML parser + license: LGPLv2, MIT; Both required. + license: BSD + tags: c++, xml, parser, serializer, pull, streaming, modern + description: libfoo is a very modern C++ XML parser. + changes: 1.2.3+2: applied upstream patch for critical bug bar + changes: 1.2.3+1: applied upstream patch for critical bug foo + url: http://www.example.org/projects/libfoo/; libfoo project page url + doc-url: http://www.example.org/projects/libfoo/man.xhtml; documentation page + src-url: http://scm.example.com/?p=odb/libodb.git\;a=tree; source tree + package-url: http://www.example.org/projects/libfoo/1.2.3+2; package url + email: libfoo-users@example.org; Public mailing list, posts by non-members\ + are allowed but moderated. + package-email: libfoo-1.2.3+2@example.org; Bug reports are welcome. + build-email: libfoo-builds@example.org; Mailing list for bbot notification\ + emails. + depends: libz + depends: libgnutls <= 1.2.3 | libopenssl >= 2.3.4 + depends: ? libboost-regex >= 1.52.0; Only if C++ compiler does not support\ + C++11 <regex>. + depends: ? libqtcore >= 5.0.0; Only if GUI is enabled. + requires: linux | windows | macosx; symbian is coming. + requires: c++11 + requires: ? ; VC++ 12.0 or later if targeting Windows. + requires: ? ; libc++ standard library if using Clang on Mac OS X. + requires: zlib; Most Linux/UNIX systems already have one; or get it at\ + www.zlib.net. + build-include: linux* + build-include: freebsd* + build-exclude: *; Only supports Linux and FreeBSD. + location: libfoo-1.2.3+2.tar.bz2 + sha256sum: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + : + name: libbar + version: 3.4A.5+6 + summary: Modern bar management framework + license: LGPLv2 + tags: c++, xml, modern + url: http://www.example.org/projects/libbar/ + email: libbar-users@example.org + build-email: + depends: libbaz (1- 2-) | libbaz [3 4-) | libbaz (5 6] | libbaz [7 8] + build-exclude: *-msvc_14*/i?86-*; Linker crash. + location: bar/libbar-3.4A.5+6.tbz + sha256sum: d4b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + : + name: libbaz + version: 2~3.4A.5+3 + summary: Modern baz system + license: LGPLv2 + url: http://www.example.org/projects/libbar/ + email: libbaz-users@example.org + location: libbaz/libbaz-2~3.4A.5+3.tar.gz + sha256sum: b5b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + EOF } : dir @@ -90,22 +90,22 @@ : Roundtrip the dir package manifest list. : $* -gp <<EOF >>EOF - : 1 - location: hello/ - : - location: mhello/ - EOF + : 1 + location: hello/ + : + location: mhello/ + EOF : duplicate : $* -gp <<EOI 2>'stdin:5:1: error: duplicate package manifest' != 0 - : 1 - location: hello/ - : - location: hello/ - : - location: mhello/ - EOI + : 1 + location: hello/ + : + location: hello/ + : + location: mhello/ + EOI } : git @@ -114,27 +114,31 @@ : fragment : $* -gp <<EOF >>EOF - : 1 - location: hello/ - fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 - : - location: mhello/ - fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 - EOF + : 1 + location: hello/ + fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 + : + location: mhello/ + fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 + EOF } } : repositories : { - : pkg + : base-manifest-redefinition : - { - : manifest - : - : Roundtrip the pkg repository manifest list. + $* -pr <<EOI 2>'stdin:3:1: error: base repository manifest redefinition' != 0 + : 1 + url: http://cppget.org : - $* -pr <<EOF >>EOF + url: http://cppget.org + EOI + + : no-base + : + $* -pr <<EOO >>EOO : 1 location: http://pkg.example.org/1/math type: pkg @@ -143,87 +147,105 @@ location: ../stable type: pkg role: complement + EOO + + : pkg + : + { + : manifest : - url: http://cppget.org - email: repoman@cppget.org; General mailing list. - summary: General C++ package repository - description: This is the awesome C++ package repository full of exciting\ - stuff. - certificate: \ - -----BEGIN CERTIFICATE----- - MIIFLzCCAxegAwIBAgIJAJ71rMp8mDy1MA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV - BAoMDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDDA9uYW1lOmNwcGdldC5vcmcwHhcN - MTYwNDA4MTc1NTUwWhcNMTcwNDA4MTc1NTUwWjAzMRcwFQYDVQQKDA5Db2RlIFN5 - bnRoZXNpczEYMBYGA1UEAwwPbmFtZTpjcHBnZXQub3JnMIICIjANBgkqhkiG9w0B - AQEFAAOCAg8AMIICCgKCAgEAwj7lwxkr19ygfNIzQsiKkmyyRG0c5AwMrwvldEk7 - 2UIwz5kNb04zveUzQcfNFhau60+xC980Y4TKA4/ScfinyaDfp1I3pmiv4OSDUoBw - 9e8a+4Jyo5fuiAXoAYaQyAdwvH1mIbYq1ObRfKW2MTrUXp/HRJAWHHBnv3VmCYBZ - dllY1hasA+SBDMBv6iTXkKUIfEdNDk8cjUR3FjxaefIdip9pHR3G0y4iWctS1drq - AKLE1J0KIJyPsJCvoZnzIeePaCNL/UtRup9mYi2vxHHFD4Ml5Bbp+gE6vq5XhcQz - LeCcGYKB3UjVWuszcpF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Ox7OTvnWCzJy0IXo0uBbcTrMv9Z62 - +KVwnghQdpURRnUpomt03cTwjqVJVrq287owGv8qqnuGcTTi1SgzNNYREFoljY58 - CCj4yYvTUzXjcAUXaNC5YNw3JEQp8vmciuJwhyUkbifLrHU= - -----END CERTIFICATE----- - \ - EOF + : Roundtrip the pkg repository manifest list. + : + $* -pr <<EOF >>EOF + : 1 + location: http://pkg.example.org/1/math + type: pkg + role: prerequisite + : + location: ../stable + type: pkg + role: complement + : + url: http://cppget.org + email: repoman@cppget.org; General mailing list. + summary: General C++ package repository + description: This is the awesome C++ package repository full of exciting\ + stuff. + certificate: \ + -----BEGIN CERTIFICATE----- + MIIFLzCCAxegAwIBAgIJAJ71rMp8mDy1MA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV + BAoMDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDDA9uYW1lOmNwcGdldC5vcmcwHhcN + MTYwNDA4MTc1NTUwWhcNMTcwNDA4MTc1NTUwWjAzMRcwFQYDVQQKDA5Db2RlIFN5 + bnRoZXNpczEYMBYGA1UEAwwPbmFtZTpjcHBnZXQub3JnMIICIjANBgkqhkiG9w0B + AQEFAAOCAg8AMIICCgKCAgEAwj7lwxkr19ygfNIzQsiKkmyyRG0c5AwMrwvldEk7 + 2UIwz5kNb04zveUzQcfNFhau60+xC980Y4TKA4/ScfinyaDfp1I3pmiv4OSDUoBw + 9e8a+4Jyo5fuiAXoAYaQyAdwvH1mIbYq1ObRfKW2MTrUXp/HRJAWHHBnv3VmCYBZ + dllY1hasA+SBDMBv6iTXkKUIfEdNDk8cjUR3FjxaefIdip9pHR3G0y4iWctS1drq + AKLE1J0KIJyPsJCvoZnzIeePaCNL/UtRup9mYi2vxHHFD4Ml5Bbp+gE6vq5XhcQz + LeCcGYKB3UjVWuszcpFIoHACw9ja2JUumbTiclUDgLBk8WXJvLjOCNLp9i/MKQws + p5CDfrNe2P6u63ZmtW2v0Qpj/6b6JQmqJaMgHQdDEBUFO3bjwm7yy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zXjcAUXaNC5YNw3JEQp8vmciuJwhyUkbifLrHU= + -----END CERTIFICATE----- + \ + EOF : prerequisite-type : $* -pr <<EOI >>EOO - : 1 - location: http://example.org/math.git#master - role: prerequisite - : - location: ../stable.git - role: complement - : - location: git://example.org/foo#master - type: git - role: prerequisite - : - location: http://pkg.example.org/1/bar - role: prerequisite - trust: 37:CE:2C:A5:1D:CF:93:81:D7:07:46:AD:66:B3:C3:90:83:B8:96:9E:34:F0:E7:B3:A2:B0:6C:EF:66:A4:BE:65 - : - url: http://cppget.org - EOI - : 1 - location: http://example.org/math.git#master - type: git - role: prerequisite - : - location: ../stable.git - type: pkg - role: complement - : - location: git://example.org/foo#master - type: git - role: prerequisite - : - location: http://pkg.example.org/1/bar - type: pkg - role: prerequisite - trust: 37:CE:2C:A5:1D:CF:93:81:D7:07:46:AD:66:B3:C3:90:83:B8:96:9E:34:F0:E7:B\ - 3:A2:B0:6C:EF:66:A4:BE:65 - : - url: http://cppget.org - EOO + : 1 + url: http://cppget.org + : + location: http://example.org/math.git#master + role: prerequisite + : + location: ../stable.git + role: complement + : + location: git://example.org/foo#master + type: git + role: prerequisite + : + location: http://pkg.example.org/1/bar + role: prerequisite + trust: 37:CE:2C:A5:1D:CF:93:81:D7:07:46:AD:66:B3:C3:90:83:B8:96:9E:34:F0:E7:B3:A2:B0:6C:EF:66:A4:BE:65 + EOI + : 1 + url: http://cppget.org + : + location: http://example.org/math.git#master + type: git + role: prerequisite + : + location: ../stable.git + type: pkg + role: complement + : + location: git://example.org/foo#master + type: git + role: prerequisite + : + location: http://pkg.example.org/1/bar + type: pkg + role: prerequisite + trust: 37:CE:2C:A5:1D:CF:93:81:D7:07:46:AD:66:B3:C3:90:83:B8:96:9E:34:F0:E7:B\ + 3:A2:B0:6C:EF:66:A4:BE:65 + EOO } : git @@ -234,91 +256,91 @@ : Roundtrip the git repository manifest list. : $* -gr <<EOF >>EOF - : 1 - location: http://example.org/math.git#master - type: git - role: prerequisite - : - location: ../stable.git#stable - type: git - role: complement - : - url: http://cppget.org - email: repoman@cppget.org; General mailing list. - summary: General C++ package repository - description: This is the awesome C++ package repository full of exciting\ - stuff. - EOF + : 1 + location: http://example.org/math.git#master + type: git + role: prerequisite + : + location: ../stable.git#stable + type: git + role: complement + : + url: http://cppget.org + email: repoman@cppget.org; General mailing list. + summary: General C++ package repository + description: This is the awesome C++ package repository full of exciting\ + stuff. + EOF : fragment : $* -gr <<EOF >>EOF - : 1 - location: http://example.org/math.git#master - type: git - role: prerequisite - fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 - : - location: ../stable.git#stable - type: git - role: complement - fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 - : - location: http://example.org/math.git#master - type: git - role: prerequisite - fragment: abc1232d46b0dca7a9ebc856871767b0ba6b74f3 - : - location: ../stable.git#stable - type: git - role: complement - fragment: abc1232d46b0dca7a9ebc856871767b0ba6b74f3 - : - url: http://cppget.org - email: repoman@cppget.org; General mailing list. - summary: General C++ package repository - description: This is the awesome C++ package repository full of exciting\ - stuff. - EOF + : 1 + location: http://example.org/math.git#master + type: git + role: prerequisite + fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 + : + location: ../stable.git#stable + type: git + role: complement + fragment: ca602c2d46b0dca7a9ebc856871767b0ba6b74f3 + : + location: http://example.org/math.git#master + type: git + role: prerequisite + fragment: abc1232d46b0dca7a9ebc856871767b0ba6b74f3 + : + location: ../stable.git#stable + type: git + role: complement + fragment: abc1232d46b0dca7a9ebc856871767b0ba6b74f3 + : + url: http://cppget.org + email: repoman@cppget.org; General mailing list. + summary: General C++ package repository + description: This is the awesome C++ package repository full of exciting\ + stuff. + EOF : prerequisite-type : $* -gr <<EOI >>EOO - : 1 - location: http://example.org/math.git#master - role: prerequisite - : - location: ../stable.git#stable - role: complement - : - location: git://example.org/foo#master - type: git - role: prerequisite - : - location: http://pkg.example.org/1/bar - role: prerequisite - : - url: http://cppget.org - EOI - : 1 - location: http://example.org/math.git#master - type: git - role: prerequisite - : - location: ../stable.git#stable - type: git - role: complement - : - location: git://example.org/foo#master - type: git - role: prerequisite - : - location: http://pkg.example.org/1/bar - type: pkg - role: prerequisite - : - url: http://cppget.org - EOO + : 1 + location: http://example.org/math.git#master + role: prerequisite + : + location: ../stable.git#stable + role: complement + : + location: git://example.org/foo#master + type: git + role: prerequisite + : + location: http://pkg.example.org/1/bar + role: prerequisite + : + url: http://cppget.org + EOI + : 1 + location: http://example.org/math.git#master + type: git + role: prerequisite + : + location: ../stable.git#stable + type: git + role: complement + : + location: git://example.org/foo#master + type: git + role: prerequisite + : + location: http://pkg.example.org/1/bar + type: pkg + role: prerequisite + : + url: http://cppget.org + EOO } : dir @@ -329,27 +351,27 @@ : Roundtrip the dir repository manifest list. : $* -dr <<EOF >>EOF - : 1 - location: ../stable - type: dir - role: complement - : - EOF + : 1 + location: ../stable + type: dir + role: complement + : + EOF : prerequisite-with-fragment : $* -dr <<EOI >>EOO - : 1 - location: ../stable.git#stable - role: complement - : - EOI - : 1 - location: ../stable.git - type: dir - role: complement - : - EOO + : 1 + location: ../stable.git#stable + role: complement + : + EOI + : 1 + location: ../stable.git + type: dir + role: complement + : + EOO } } @@ -361,18 +383,18 @@ : manifest : $* -s <<EOF >>EOF - : 1 - sha256sum: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - signature: \ - geWdw7Gm+Rt+CLDMBby5Y796E8rxwImb0bmcZwGWar9D3vkFm9Kjh00Buuo1PuU7tP1dV6yvRbH8 - NzC0IryEoUJHx9909AJ449ET9Zb+C3ykEeBlKH2wonj7cAVK9ZEDpPEGAtp56XWZQEawl50mwq6t - XkZAABxtOswXiicdh3HK7kaPHp38/9CBMc0rva6wDnkbTigUYA2ULqLtP5a5mLovVc48zI9A/hmb - Qx1/Nr7nzTZNDGK7CwTAb1fPam9rZklTfCTPSPUUjvWjM9XdY8cbRE1FrE14TXdyQPxCLzHO2dUO - YWH5/qMikEoCYhYXQ6KhekoT/MUiVC3PMcYQbYOrOtSxq6RcgnymexBe1XIyld5Rfo1eXu8TK11r - QPULIqAGy6RwEUhGznuEiGHQwb1UymNyJ/qgr4vBPjJtlvptqG5XNmtiJ22f07nmeVRi2Vg2UyOw - HoVpy5t/w0tEnUXPA39Vt0v1bUm7Knhc8qL4JFEqK/j/CzEHzEtAjn0aoGuKubCO0WUa+v6ZlkLU - YrNUIdgT1wgj4yEhLO3g+NsnxFH05D2sfR16rrkI2E6st5crAHR8FOl2FDsWxgKqNbzXZw7rl+Fa - TobGycX7MDf2mbBmR/KmEkMBJ4mziWLAycSAGyE5VRYDwHPJlQE0143wBzT8eNw4VLm/r+88VYw= - \ - EOF + : 1 + sha256sum: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + signature: \ + geWdw7Gm+Rt+CLDMBby5Y796E8rxwImb0bmcZwGWar9D3vkFm9Kjh00Buuo1PuU7tP1dV6yvRbH8 + NzC0IryEoUJHx9909AJ449ET9Zb+C3ykEeBlKH2wonj7cAVK9ZEDpPEGAtp56XWZQEawl50mwq6t + XkZAABxtOswXiicdh3HK7kaPHp38/9CBMc0rva6wDnkbTigUYA2ULqLtP5a5mLovVc48zI9A/hmb + Qx1/Nr7nzTZNDGK7CwTAb1fPam9rZklTfCTPSPUUjvWjM9XdY8cbRE1FrE14TXdyQPxCLzHO2dUO + YWH5/qMikEoCYhYXQ6KhekoT/MUiVC3PMcYQbYOrOtSxq6RcgnymexBe1XIyld5Rfo1eXu8TK11r + QPULIqAGy6RwEUhGznuEiGHQwb1UymNyJ/qgr4vBPjJtlvptqG5XNmtiJ22f07nmeVRi2Vg2UyOw + HoVpy5t/w0tEnUXPA39Vt0v1bUm7Knhc8qL4JFEqK/j/CzEHzEtAjn0aoGuKubCO0WUa+v6ZlkLU + YrNUIdgT1wgj4yEhLO3g+NsnxFH05D2sfR16rrkI2E6st5crAHR8FOl2FDsWxgKqNbzXZw7rl+Fa + TobGycX7MDf2mbBmR/KmEkMBJ4mziWLAycSAGyE5VRYDwHPJlQE0143wBzT8eNw4VLm/r+88VYw= + \ + EOF } |