Your message dated Thu, 24 May 2012 12:47:57 +0000
with message-id <[email protected]>
and subject line Bug#673473: fixed in git-buildpackage 0.6.0~git20120524
has caused the Debian Bug report #673473,
regarding git-buildpackage: Provide minimalist debian/control object
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
673473: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673473
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: git-buildpackage
Version: 0.6.0~git20120419
Severity: wishlist
Tags: patch

Dear Maintainer,

I include a patch to provide a minimalist debian/control object in
preparation to #669171.

Based on experimental.

Regards.

The following changes since commit 7fc0d8c974921d1ef280d5178d03839e0d074b88:

  Fix typo in doctest that made epydoc fail. (2012-05-15 21:04:23 +0200)

are available in the git repository at:

  git://git.baby-gnu.net/git-buildpackage 
tags/dad/add-minimalist-control-object/1

for you to fetch changes up to 33796f8278e4b7e81674fa7e7f90cfb076804147:

  Add minimalist debian/control object. (2012-05-18 23:35:18 +0200)

----------------------------------------------------------------
For now it only provides the "name" property which return the package source 
name.

----------------------------------------------------------------
Daniel Dehennin (1):
      Add minimalist debian/control object.

 gbp/deb/control.py |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 gbp/deb/control.py


From 33796f8278e4b7e81674fa7e7f90cfb076804147 Mon Sep 17 00:00:00 2001
From: Daniel Dehennin <[email protected]>
Date: Fri, 18 May 2012 19:42:16 +0200
Subject: [PATCH] Add minimalist debian/control object.

* gbp/deb/control.py: New class Control with "name" property to get
  package source name.
---
 gbp/deb/control.py |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 gbp/deb/control.py

diff --git a/gbp/deb/control.py b/gbp/deb/control.py
new file mode 100644
index 0000000..f048f33
--- /dev/null
+++ b/gbp/deb/control.py
@@ -0,0 +1,63 @@
+# vim: set fileencoding=utf-8 :
+#
+# (C) 2012 Daniel Dehennin <[email protected]>
+#    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
+"""A Debian Control"""
+
+import email
+import os
+
+class NoControlError(Exception):
+    """No control found"""
+    pass
+
+class ParseControlError(Exception):
+    """Problem parsing control"""
+    pass
+
+class Control(object):
+    """A Debian control"""
+
+    def __init__(self, filename="debian/control"):
+        """
+        Parse an existing control file.
+
+        @param filename: name of the control file
+        @type filename: C{str}
+        @return: Control object
+        @rtype: C{gbp.deb.conrol.Control} object
+        """
+        if not os.access(filename, os.F_OK):
+            raise NoControlError("Control file %s does not exist" % filename)
+
+        self.filename = filename
+        with file(filename) as f:
+            control = email.message_from_file(f)
+
+        if not control.items():
+            raise ParseControlError("Empty control file")
+
+        self._control = control
+
+    # def __getitem__(self, item):
+    #     return self._control[item]
+
+    # def __setitem__(self, item, value):
+    #     self._control[item] = value
+
+    @property
+    def name(self):
+        """The packges name"""
+        return self._control['Source']
-- 
1.7.10



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.4+hati.1+ (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages git-buildpackage depends on:
ii  devscripts       2.11.6
ii  git              1:1.7.10-1
ii  python           2.7.2-10
ii  python-dateutil  1.5-1
ii  python2.6        2.6.7-4
ii  python2.7        2.7.3~rc2-2.1

Versions of packages git-buildpackage recommends:
ii  cowbuilder    <none>
ii  pristine-tar  1.24

Versions of packages git-buildpackage suggests:
ii  python-notify  0.1.1-3
ii  unzip          6.0-6

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pyshared/gbp/deb/changelog.py (from 
git-buildpackage package)
debsums: changed file /usr/share/pyshared/gbp/scripts/dch.py (from 
git-buildpackage package)

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

Attachment: pgpbRakpJnZPp.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: git-buildpackage
Source-Version: 0.6.0~git20120524

We believe that the bug you reported is fixed in the latest version of
git-buildpackage, which is due to be installed in the Debian FTP archive:

git-buildpackage_0.6.0~git20120524.dsc
  to main/g/git-buildpackage/git-buildpackage_0.6.0~git20120524.dsc
git-buildpackage_0.6.0~git20120524.tar.gz
  to main/g/git-buildpackage/git-buildpackage_0.6.0~git20120524.tar.gz
git-buildpackage_0.6.0~git20120524_all.deb
  to main/g/git-buildpackage/git-buildpackage_0.6.0~git20120524_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <[email protected]> (supplier of updated git-buildpackage package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 24 May 2012 14:05:47 +0200
Source: git-buildpackage
Binary: git-buildpackage
Architecture: source all
Version: 0.6.0~git20120524
Distribution: experimental
Urgency: low
Maintainer: Guido Günther <[email protected]>
Changed-By: Guido Günther <[email protected]>
Description: 
 git-buildpackage - Suite to help with Debian packages in Git repositories
Closes: 672642 673368 673422 673473
Changes: 
 git-buildpackage (0.6.0~git20120524) experimental; urgency=low
 .
   [ Markus Lehtonen ]
   * [3308868] Refactor deb helpers: introduce PkgPolicy class.  Create a new
     'pkg' basemodule, intended to be re-used by the upcoming rpm package
     helpers. Move some deb functionality to a new pkg.PkgPolicy class, to be
     used as a base for different package types. Introduces Deb-specific
     deb.DebianPkgPolicy.
   * [082679d] Refactor deb helpers: move build_tarball_name() from
     UpstreamSource class to DebianPkgPolicy.
   * [f495df9] Refactor deb helpers: move UpstreamSource class to pkg base
     module. This refactor is preparation to the upcoming rpm support.
 .
   [ Guido Günther ]
   * [83165aa] GitRepository.format_patches: allow to set threading format
     and disable it by default.
   * [5de6410] docs: complete git-dch synopsis
   * [1eeb298] Add gbp.deb.ChangeLogSection to parse package and version out of
     a changelog section
   * [1ea487e] Don't explicitly refer to lenny-backports.
     Thanks to Salvatore Bonaccorso
   * [9d1459b] gbp.deb.changelog: Split parsing into a separate function
     this will allow us to reparse the changelog after manipulation with dch.
   * [2ecf9e3] gbp.deb.ChangeLog: Add filename property
 .
   [ Jérémy Lal ]
   * [ae850da] --ignore-branch config help fix
 .
   [ Daniel Dehennin ]
   * [c57d4af] gbp.git.repository: Add a "git merge-base" wrapper
     (Closes: #672642)
   * [edc6483] Provide minimalist debian/control object
     (Closes: #673473)
 .
   [ Salvatore Bonaccorso ]
   * [bb32e94] git-dch: Add support for --team switch for Team uploads
     (Closes: #673368)
   * [016bf21] Document --bpo, --nmu and --qa in git-dch's manpage
     (Closes: #673422)
Checksums-Sha1: 
 6bf1315a7853a98f565f0d1436ec969b6e3cbaf5 1270 
git-buildpackage_0.6.0~git20120524.dsc
 237940aaad5ccbddb7b8194ab8392b79b7a25858 154245 
git-buildpackage_0.6.0~git20120524.tar.gz
 85e992c03bf782f055caf417eb78246eb2ce350e 308838 
git-buildpackage_0.6.0~git20120524_all.deb
Checksums-Sha256: 
 bd90f81b107c9104d7bfc433c49f8c0d0c0c706e98445d17949fbe37a559fff8 1270 
git-buildpackage_0.6.0~git20120524.dsc
 53ea430576d6de779df243b0b900135bca59094c5b073f111de2326012862144 154245 
git-buildpackage_0.6.0~git20120524.tar.gz
 17b4b7baeda4726054f6eeba963922b22409b30722df7d3bd351f0fdb90695fa 308838 
git-buildpackage_0.6.0~git20120524_all.deb
Files: 
 483a253181c17cecf79b7721f8990097 1270 vcs optional 
git-buildpackage_0.6.0~git20120524.dsc
 ada53f514f52ae47c9d5da884151fbdb 154245 vcs optional 
git-buildpackage_0.6.0~git20120524.tar.gz
 b20839c94f990da93528b2363b3f813e 308838 vcs optional 
git-buildpackage_0.6.0~git20120524_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFPviqPn88szT8+ZCYRAjbMAJ9LEgmEJcuwDwcBkHdvsyzHrTy9jgCdHiAE
WsvG+cgQZks7/Mm8zbwLuO4=
=0xc9
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to