summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-10-14 05:04:40 +0000
committerNick Mathewson <nickm@torproject.org>2008-10-14 05:04:40 +0000
commitfb5a6115a6f3ea0216e3ca0645ba1eb31fb02876 (patch)
tree76a0b3276b5d60eb7ed5d4a783a1cb41ec89c664 /samples
parent047f0117bf3ccf5b7e1a36b760a5c75f988bc72e (diff)
Implement all of signing-side and server-side for updater, and the core loops of client-side. More downloader support is needed, and more polishing. See TODO for details. This no longer matches glider-spec.txt exactly. Notably, it uses json instead of sexp.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17084 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'samples')
-rw-r--r--samples/bundle.cfg15
-rw-r--r--samples/example-mirrors.txt5
-rw-r--r--samples/example-package.cfg24
-rw-r--r--samples/testpackage.cfg1
4 files changed, 45 insertions, 0 deletions
diff --git a/samples/bundle.cfg b/samples/bundle.cfg
new file mode 100644
index 0000000..d2c78b3
--- /dev/null
+++ b/samples/bundle.cfg
@@ -0,0 +1,15 @@
+
+name = "example-bundle"
+version = [0,1,10]
+location = "/bundleinfo/example/os-arch/example-os-arch-0.1.10.txt"
+os = "os"
+arch = "arch"
+
+Package(name="example",
+ version=[0,1,2],
+ path="/pkginfo/example/rpm/example.txt",
+ order=(10,10,10),
+ optional=False)
+ShortGloss("en", "Example package is needed to make the ossifrage squeamish.")
+LongGloss("en", "You wouldn't want an unsqueamish ossifrage, would you?")
+
diff --git a/samples/example-mirrors.txt b/samples/example-mirrors.txt
new file mode 100644
index 0000000..c02583e
--- /dev/null
+++ b/samples/example-mirrors.txt
@@ -0,0 +1,5 @@
+
+Mirror(name="moria",
+ urlbase="http://moria.seul.org/thandy-example/",
+ contents=[ "**" ],
+ weight=1)
diff --git a/samples/example-package.cfg b/samples/example-package.cfg
new file mode 100644
index 0000000..527211b
--- /dev/null
+++ b/samples/example-package.cfg
@@ -0,0 +1,24 @@
+
+
+# This is package is name 'example'
+name = "example"
+
+# Encodes version 0.1.2.
+version = [0, 1, 2]
+
+# What kind of package is this?
+format = "rpm"
+
+# Where in the repository does it go?
+location = "/pkginfo/example/rpm/example.txt"
+
+# Where in the repository does its underlying rpm file go?
+relpath = "/data/example-0.1.2.rpm"
+
+# Decriptions of the package.
+ShortDesc('en', "Example package")
+LongDesc('en',
+"""This is an example package.
+
+Its description is not quite so long as it might be, but hey.""")
+
diff --git a/samples/testpackage.cfg b/samples/testpackage.cfg
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/samples/testpackage.cfg
@@ -0,0 +1 @@
+