diff options
| author | 2008-06-28 19:02:23 +0200 | |
|---|---|---|
| committer | 2008-06-28 19:02:23 +0200 | |
| commit | a94148229a62c158fcfbf190f0060dfda770812c (patch) | |
| tree | 2df649c404b41369fbbc67395a03a73ce5293c5e | |
| parent | 34bbaa680b773898c7765fa3a4395e415b420320 (diff) | |
experimental release support
Mark experimental releases with "NotAutomatic: yes" in Release file.
Debian Bug 336232. Thanks to Stephan Suerken
| -rw-r--r-- | doc/mini-dinstall.1 | 3 | ||||
| -rw-r--r-- | doc/mini-dinstall.conf | 4 | ||||
| -rwxr-xr-x | mini-dinstall | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/doc/mini-dinstall.1 b/doc/mini-dinstall.1 index 1e077b1..e8527fc 100644 --- a/doc/mini-dinstall.1 +++ b/doc/mini-dinstall.1 @@ -278,6 +278,9 @@ The Origin field in the Release file. Defaults to the current user's username. .B release_suite The Suite field in the Release file. Defaults to \*(lqNone\*(rq. .TP +.B experimental_release +The experimental_release field mark the release as experimental. Defaults to \*(lqNone\*(rq. +.TP .B release_signscript If specified, this script will be called to sign Release files. It will be invoked in the directory containing the Release file, and should accept the diff --git a/doc/mini-dinstall.conf b/doc/mini-dinstall.conf index de323ea..a0d7f9b 100644 --- a/doc/mini-dinstall.conf +++ b/doc/mini-dinstall.conf @@ -83,6 +83,9 @@ release_suite = Penthouse # The default Description: field in the release file release_description = My Happy Fun Packages +# Whether or not to mark the release as experimental. +experimental_release = 0 + # If specified, this script will be called to sign Release files. It # will be invoked in the directory containing the Release file, and # should accept the filename of the Release file to sign as the first @@ -130,3 +133,4 @@ post_install_script = ~/bin/staging-post-inst.sh [experimental] architectures = all, i386, sparc, powerpc, ia64, sh4 keep_old = 1 +experimental_release = 1 diff --git a/mini-dinstall b/mini-dinstall index 81cc68b..955b642 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -362,6 +362,7 @@ class DistOptionHandler: self._optionmap['release_label'] = ['str', self._optionmap['release_origin'][1]] self._optionmap['release_suite'] = ['str', None] self._optionmap['release_codename'] = ['str', None] + self._optionmap['experimental_release'] = ['bool', 0] self._optionmap['release_description'] = ['str', None] self._optionmap['release_signscript'] = ['str', None] @@ -1336,6 +1337,8 @@ class SimpleSubdirArchiveDirIndexer(ArchiveDirIndexer): if not codename: codename = suite f.write('Codename: ' + '%s/%s\n' % (codename, arch)) + if self._experimental_release: + f.write('NotAutomatic: yes\n') f.write('Date: ' + time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime()) + '\n') f.write('Architectures: ' + arch + '\n') if self._release_description: @@ -1424,6 +1427,8 @@ class FlatArchiveDirIndexer(ArchiveDirIndexer): if not codename: codename = suite f.write('Codename: ' + codename + '\n') + if self._experimental_release: + f.write('NotAutomatic: yes\n') f.write('Date: ' + time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime()) + '\n') f.write('Architectures: ' + string.join(self._arches, ' ') + '\n') if self._release_description: |
