summaryrefslogtreecommitdiff
path: root/templates/system/package/repository/node.def
blob: 104089a9da0d047ba303d42f0bca76b993f2e0aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
tag:
type: txt
help: "Repository name"
# bug 1847: remove the previous repo line before adding new line.
# need to prohibit '!' in repo name (sed delimiter)
syntax: pattern $(@) "^[^!]+$" ; "Do not use '!' in repository name"
create: "sh -c \"touch /etc/apt/sources.list && \
sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \
echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" "
update: "sh -c \"touch /etc/apt/sources.list && \
sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \
echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" "
delete: "sh -c \"touch /etc/apt/sources.list && \
sed -i '\\! $(@) $(component/@)!d' /etc/apt/sources.list\" "