diff options
Diffstat (limited to 'package.proto')
| -rw-r--r-- | package.proto | 57 |
1 files changed, 37 insertions, 20 deletions
diff --git a/package.proto b/package.proto index d3e6ae2..7c8436b 100644 --- a/package.proto +++ b/package.proto @@ -2,12 +2,15 @@ syntax = "proto3"; package gitpb; -// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp -// global settings for autogenpb `autogenpb:mutex` +// Note: 'autogenpb' treats all .proto variable names as case insensitive -message Package { +// DebInfo has the information displayed by "dpkg -I moon-buggy.deb" +// The order here is the order they will be written into the +// /home/mirrors/debian/sid/main/binary-riscv64/Packages file + +message DebInfo { string Package = 1; // `autogenpb:unique` `autogenpb:sort` string Filename = 2; // `autogenpb:unique` `autogenpb:sort` string Namespace = 3; // path to the sources (go.wit.com/apps/zookeeper) @@ -15,28 +18,42 @@ message Package { string Architecture = 5; // string Depends = 6; // string Maintainer = 7; // - string Description = 8; // - string Packager = 9; // - string Source = 10; // - string Size = 11; // - string Conflicts = 12; // - string BuildDepends = 13; // - string URL = 14; // - string SHA1 = 15; // - string MD5SUM = 16; // - string SHA256 = 17; // - string SHA512 = 18; // - bool installed = 19; // if installed on your machine, this should be set to true - google.protobuf.Timestamp BuildDate = 20; // - google.protobuf.Timestamp GitDate = 21; // - google.protobuf.Timestamp ctime = 22; // create time on the mirrors - map<string, string> core = 23; // catch all for whatever is left over + string Homepage = 8; // + string Description = 9; // + string Packager = 10; // + string Source = 11; // + string Size = 12; // + string Conflicts = 13; // + string BuildDepends = 14; // + string URL = 15; // + string SHA1 = 16; // probably not used anymore + string MD5SUM = 17; // deprecate + string SHA256 = 18; // + string SHA512 = 19; // +} + +message Package { + string Package = 1; // `autogenpb:sort` + string Filename = 2; // `autogenpb:unique` `autogenpb:sort` + string Namespace = 3; // namespace path to the sources (go.wit.com/apps/zookeeper) + string Version = 4; // + string Architecture = 5; // + DebInfo debInfo = 6; // the information given by "dpkg -I pingus.deb" + bool installed = 7; // if installed on your machine, this should be set to true + google.protobuf.Timestamp ctime = 8; // the ctime of the file on the mirrors + google.protobuf.Timestamp buildDate = 9; // when the package was built + google.protobuf.Timestamp gitDate = 10; // the tiem of the last git commit + google.protobuf.Timestamp gitHash = 11; // the git hash it was built from + map<string, string> custom = 12; // for custom strings } message Packages { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:http` string uuid = 1; // `autogenpb:uuid:2f26cc03-ea30-4481-a333-ad0acc86e1d3` - string version = 2; // `autogenpb:version:v0.0.2` + string version = 2; // `autogenpb:version:v0.0.3` repeated Package packages = 3; string filename = 4; // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save() bool changed = 5; // only writes to disk on Save() if changed == true + string gpgKeyID = 6; // the gpg key used to sign the debian mirror Package files + string baseDir = 7; // where your mirrors repo starts "/home/mirrors/debian" + repeated string Errors = 8; // where your mirrors repo starts "/home/mirrors/debian" } |
