From 333c5953151d6324d83d279a7ac3c53cd1af54b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Sep 2015 10:58:17 +0200 Subject: Implement pkg-verify, pkg-fetch commands --- bpkg/package | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bpkg/package') diff --git a/bpkg/package b/bpkg/package index 2aa7412..8c1e047 100644 --- a/bpkg/package +++ b/bpkg/package @@ -35,6 +35,18 @@ namespace bpkg namespace bpkg { + // path + // + #pragma db map type(path) as(string) \ + to((?).string ()) from(bpkg::path (?)) + + using optional_path = optional; + using optional_string = optional; + + #pragma db map type(optional_path) as(bpkg::optional_string) \ + to((?) ? (?)->string () : bpkg::optional_string ()) \ + from((?) ? bpkg::path (*(?)) : bpkg::optional_path ()) + // version // #pragma db map type(version) as(_version) \ @@ -81,6 +93,14 @@ namespace bpkg version_type version; state_type state; + // Path to the archive of this package, if any. If not absolute, + // then it is relative to the configuration directory. The purge + // flag indicates whether the archive should be removed when the + // packaged is purged. + // + optional archive; + bool archive_purge; + // Database mapping. // #pragma db member(name) id -- cgit v1.1