Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
README.release: add note about d-i; remove TODO
· 930ecf87
Ansgar
authored
Jul 06, 2019
930ecf87
update122: update default settings for suites
· a5565b09
Ansgar
authored
Jul 06, 2019
a5565b09
Merge branch 'master' into deploy
· 8699b2df
Ansgar
authored
Jul 06, 2019
8699b2df
Show whitespace changes
Inline
Side-by-side
dak/dakdb/update122.py
0 → 100644
View file @
8699b2df
# coding=utf8
"""
Update default settings for suites
@contact: Debian FTP Master <ftpmaster@debian.org>
@copyright: 2019, Ansgar Burchardt <ansgar@debian.org>
@license: GNU General Public License version 2 or later
"""
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
################################################################################
from
__future__
import
print_function
import
psycopg2
from
daklib.dak_exceptions
import
DBUpdateError
################################################################################
def
do_update
(
self
):
"""
Update default settings for suites
"""
print
(
__doc__
)
try
:
c
=
self
.
db
.
cursor
()
c
.
execute
(
"""
ALTER TABLE suite
ALTER COLUMN indices_compression SET DEFAULT ARRAY[
'
xz
'
],
ALTER COLUMN i18n_compression SET DEFAULT ARRAY[
'
xz
'
],
ALTER COLUMN byhash SET DEFAULT TRUE
"""
)
c
.
execute
(
"
UPDATE config SET value =
'
122
'
WHERE name =
'
db_revision
'"
)
self
.
db
.
commit
()
except
psycopg2
.
ProgrammingError
as
msg
:
self
.
db
.
rollback
()
raise
DBUpdateError
(
'
Unable to apply sick update 122, rollback issued. Error message : %s
'
%
(
str
(
msg
)))
docs/README.release
View file @
8699b2df
...
...
@@ -303,6 +303,7 @@ dak admin v-c add testing-updates MustBeNewerThan oldoldstable
dak admin v-c add unstable MustBeNewerThan testing
dak admin v-c add experimental MustBeNewerThan testing
# copy d-i to new testing (so same d-i in stable, testing, unstable)
# backports
dak admin suite add ${new_oldstable}-backports-sloppy '' origin="Debian Backports" label='Debian Backports' codename=${new_oldstable}-backports-sloppy description='Debian 9 - Sloppy Backports' notautomatic=true butautomaticupgrades=true close_bugs=false archive=ftp-master
...
...
@@ -432,10 +433,3 @@ for suite in testing-security buildd-testing-security; do
dak generate-packages-sources2 -s ${suite}
dak generate-releases -s ${suite}
done
########################################################################
TODO:
buster-backports-debug
buildd-buster-backports?
bullseye-backports