Package: python-debian
Version: 0.1.27
Severity: minor
Tags: patch

Dear Maintainer,

According to
<https://www.debian.org/doc/manuals/debian-faq/ch-ftparchives#s-sourceforcodenames>
the codename of Debian 1.2 was 'Rex'

$ python -c 'from debian.debian_support import intern_release;print 
intern_release("rex")'
None

-- System Information:
Debian Release: 8.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (90, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-0.bpo.3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-debian depends on:
ii  python-chardet  2.3.0-1
ii  python-six      1.10.0-3
pn  python:any      <none>

Versions of packages python-debian recommends:
ii  python-apt  0.9.3.12

Versions of packages python-debian suggests:
ii  gpgv  1.4.18-7+deb8u3

-- no debconf information
>From a97b7883a8fdf75210087294aae7d084bad00d1d Mon Sep 17 00:00:00 2001
Message-Id: <a97b7883a8fdf75210087294aae7d084bad00d1d.1496151946.git.h...@univention.de>
From: Philipp Hahn <h...@univention.de>
Date: Tue, 30 May 2017 15:44:02 +0200
Subject: [PATCH] Fix codename of 'Rex'
Organization: Univention GmbH, Bremen, Germany

According to
<https://www.debian.org/doc/manuals/debian-faq/ch-ftparchives#s-sourceforcodenames>
the codename of Debian 1.2 was 'Rex'
---
 lib/debian/debian_support.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/lib/debian/debian_support.py b/lib/debian/debian_support.py
index 4de36b7..fccc310 100644
--- a/lib/debian/debian_support.py
+++ b/lib/debian/debian_support.py
@@ -1,17 +1,17 @@
 # debian_support.py -- Python module for Debian metadata
 # Copyright (C) 2005 Florian Weimer <f...@deneb.enyo.de>
 # Copyright (C) 2010 John Wright <j...@debian.org>
-# 
+#
 # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -62,7 +62,7 @@ class ParseError(Exception):
     msg - error message
 
     """
-    
+
     def __init__(self, filename, lineno, msg):
         assert type(lineno) == types.IntType
         self.filename = filename
@@ -355,7 +355,7 @@ class PackageFile:
                 line = self.file.readline()
                 self.lineno += 1
                 continue
-            
+
             match = self.re_field.match(line)
             if not match:
                 self.raise_syntax_error("expected package field")
@@ -415,7 +415,7 @@ class Release(PseudoEnum): pass
 def list_releases():
     releases = {}
     rels = ("buzz",
-            "rez",
+            "rex",
             "bo",
             "hamm",
             "slink",
@@ -472,7 +472,7 @@ def patches_from_ed_script(source,
     """
 
     i = iter(source)
-    
+
     for line in i:
         match = re_cmd.match(line)
         if match is None:
@@ -566,7 +566,7 @@ def download_file(remote, local):
     remote - URL, without the .gz suffix
     local - name of the local file
     """
-    
+
     lines = download_gunzip_lines(remote + '.gz')
     replace_file(lines, local)
     return lines
@@ -591,7 +591,7 @@ def update_file(remote, local, verbose=None):
     local_hash = read_lines_sha1(lines)
     patches_to_apply = []
     patch_hashes = {}
-    
+
     import urllib
     index_name = remote + '.diff/Index'
 
@@ -632,9 +632,9 @@ def update_file(remote, local, verbose=None):
                     # remaining patches.
                     if patches_to_apply or  hist_hash == local_hash:
                         patches_to_apply.append(patch_name)
-                        
+
                 continue
-            
+
             if field == 'SHA1-Patches':
                 for entry in value.splitlines():
                     if entry == '':
@@ -643,10 +643,10 @@ def update_file(remote, local, verbose=None):
                                  = re_whitespace.split(entry)
                     patch_hashes[patch_name] = patch_hash
                 continue
-            
+
             if verbose:
                 print("update_file: field %r ignored" % field)
-        
+
     if not patches_to_apply:
         if verbose:
             print("update_file: could not find historic entry", local_hash)
@@ -659,7 +659,7 @@ def update_file(remote, local, verbose=None):
         if read_lines_sha1(patch_contents ) != patch_hashes[patch_name]:
             raise ValueError("patch %r was garbled" % patch_name)
         patch_lines(lines, patches_from_ed_script(patch_contents))
-        
+
     new_hash = read_lines_sha1(lines)
     if new_hash != remote_hash:
         raise ValueError("patch failed, got %s instead of %s"
-- 
2.11.0

Reply via email to