summaryrefslogtreecommitdiff
path: root/templates/system/package
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-03-07 16:37:54 -0800
committerrbalocca <rbalocca@vyatta.com>2008-03-07 16:37:54 -0800
commit5fe4e9633b235cbc757e4d2340112f7ff5e41ce1 (patch)
tree8cd5cb49bb1c853e4ccb41c8b0155952197e799d /templates/system/package
parent550307379748dd440986510d9a6a423881d48169 (diff)
downloadvyatta-cfg-system-5fe4e9633b235cbc757e4d2340112f7ff5e41ce1.tar.gz
vyatta-cfg-system-5fe4e9633b235cbc757e4d2340112f7ff5e41ce1.zip
Revert "Fix for bug #2921 ( http://bugzilla.vyatta.com/show_bug.cgi?id=2921 )"
This reverts commit 550307379748dd440986510d9a6a423881d48169.
Diffstat (limited to 'templates/system/package')
-rw-r--r--templates/system/package/repository/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def
index 7dc48a3d..e07967ee 100644
--- a/templates/system/package/repository/node.def
+++ b/templates/system/package/repository/node.def
@@ -1,6 +1,9 @@
tag:
type: txt
help: Name describing the repository
+commit:expression: $VAR(./url/) != ""; "Must configure the repository URL"
+commit:expression: $VAR(./distribution/) != ""; "Must configure the repository distribution"
+commit:expression: $VAR(./components/) != ""; "Must configure the repository component"
update:expression: "sudo sh -c \"touch /etc/apt/sources.list && \
sed -i '\\!# $VAR(@) #!d' /etc/apt/sources.list && \
echo \\\"deb $VAR(url/@)/ $VAR(distribution/@) $VAR(components/@) # $VAR(@) #\\\" >> /etc/apt/sources.list\" "