summaryrefslogtreecommitdiff
path: root/db-functions-none
blob: 1d5a3463f9baa50104d6a45a5a53f7dad53ed5fe (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/hint/bash

# Within this file (and in most of dbscripts, really):
# - "pkgarch" refers to the package architecture; may be "any"
# - "tarch" refers to the repo architecture; may NOT be "any"

# usage: vcs_move_preflight_check repo_from pkgarch pkgbase
#
# Verify that $pkgbase exists in $repo_from in VCS, such that we can
# move it to a different repo.
vcs_move_preflight_check() {
	local repo_from=$1
	local tarch=$2
	local pkgbase=$3

	:
}

# usage: vcs_move_start repo_from repo_to pkgbase
#
# Begin a VCS transaction moving $pkgbase from $repo_from to $repo_to.
# This should be followed by a call to vcs_move_arch for each
# architecture we're movin it for, and finally by a call to
# vcs_move_finish.
vcs_move_start() {
	local repo_from=$1
	local repo_to=$2
	local pkgbase=$3

	:
}

# usage: vcs_move_arch tarch
#
# Add an architecture to a VCS transaction started by vcs_move_start.
vcs_move_arch() {
	local tarch=$1

	:
}

# usage: vcs_move_finish
#
# Commit/finalize a VCS transaction started by vcs_move_start.
vcs_move_finish() {
	:
}

# usage: vcs_remove repo pkgarch pkgbase
#
# Remove the given package in VCS.
vcs_remove() {
	local repo=$1
	local arch=$2
	local pkgbase=$3

	:
}

# usage: vcs_export repo pkgarch pkgbase dest
#
# Export the VCS files for a package to the given $dest directory.
#vcs_export() {
#	local repo=$1
#	local pkgarch=$2
#	local pkgbase=$3
#	local dest=$4
#
#	:
#}