From cddf83890330ab724bded96614ef8ffcc2c47656 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 10 Apr 2016 11:28:01 +0200 Subject: Add option backport_release to the configuration file. If this option is set mini-dinstall writes "NotAutomatic: yes" and "ButAutomaticUpgrades: yes" to the Release file. Closes: #820582 --- mini-dinstall | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mini-dinstall') diff --git a/mini-dinstall b/mini-dinstall index 9827c8c..1efc9e9 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -385,6 +385,7 @@ class DistOptionHandler: self._optionmap['release_suite'] = ['str', None] self._optionmap['release_codename'] = ['str', None] self._optionmap['experimental_release'] = ['bool', 0] + self._optionmap['backport_release'] = ['bool', 0] self._optionmap['release_description'] = ['str', None] self._optionmap['release_signscript'] = ['str', None] self._optionmap['keyrings'] = ['list', None] @@ -1421,6 +1422,9 @@ class SimpleSubdirArchiveDirIndexer(ArchiveDirIndexer): f.write('Codename: ' + '%s/%s\n' % (codename, arch)) if self._experimental_release: f.write('NotAutomatic: yes\n') + elif self._backport_release: + f.write('NotAutomatic: yes\n') + f.write('ButAutomaticUpgrades: 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: @@ -1522,6 +1526,9 @@ class FlatArchiveDirIndexer(ArchiveDirIndexer): f.write('Codename: ' + codename + '\n') if self._experimental_release: f.write('NotAutomatic: yes\n') + elif self._backport_release: + f.write('NotAutomatic: yes\n') + f.write('ButAutomaticUpgrades: 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: -- cgit v1.2.3