/usr/share/apt-move/get3 is in apt-move 4.2.27-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # $Id: get3,v 1.4 2002/10/11 12:01:32 herbert Exp $
BEGIN {
type = ARGV[1]
ARGC = 1
map["package"] = ""
map["priority"] = ""
map["section"] = ""
map["version"] = ""
map["source"] = ""
map["task"] = "-"
}
{
dist = $1
file = $2
while ((val = getline < file) > 0) {
if (/^$/) {
section = map["section"]
if (dist == "-") {
key = getdist(section)
} else {
key = dist
}
package = map["package"]
if (type == "binary") {
source = map["source"]
map["source"] = ""
if (source == "") {
source = package
}
key = key "_" source "_" package
task = map["task"] " "
map["task"] = "-"
} else {
key = key "_" package
}
print \
key " " \
map["priority"] " " section " " \
task map["version"]
continue
}
if (/^[ \t]/) {
continue
}
x = index($0, ":")
if (!x) {
continue
}
field = tolower(substr($0, 1, x - 1))
if (field in map) {
split(substr($0, x + 1), a, " ")
map[field] = a[1]
}
}
if (val < 0) {
print "Failed to read " file > "/dev/stderr"
exit 1
}
}
|