summaryrefslogtreecommitdiff
path: root/structs.go
blob: 71643b559ffd8cb8f132eca8a19598544ceb554f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package main

import (
	"sync"

	"go.wit.com/lib/config"
	"go.wit.com/lib/gui/prep"
	"go.wit.com/lib/protobuf/zoopb"
)

// --- Configuration ---
// !!! IMPORTANT: Set your GPG Key ID here!
// Find it with: gpg --list-secret-keys --keyid-format=long
// const gpgKeyID = "5D7C9BE47836D2FA48F83C2B4A854AEAF7E0E16D"

const dist = "sid"
const component = "main"
const poolDir = "pool"
const distsDir = "dists"

var architectures = []string{"amd64", "riscv64", "arm64", "all"}

// DebInfo holds the control information for a single .deb package.
type DebInfo struct {
	ControlData map[string]string
	Filename    string
	Size        int64
	MD5Sum      string
	SHA1Sum     string
	SHA256Sum   string
}

var me *mainType

// this app's variables
type mainType struct {
	once   sync.Once       // one-time initialized data
	sh     *prep.Auto      // more experiments for bash handling
	pb     *zoopb.Packages // the mirrors packages
	config *config.Config  // the mirrors packages
}