[Pkg-python-debian-commits] r75 trunk: extra ar members should be ignored (Closes: #438486). Also add the

Stefano Zacchiroli zack at bononia.it
Sun Aug 19 07:36:45 UTC 2007


------------------------------------------------------------
revno: 75
committer: Stefano Zacchiroli <zack at bononia.it>
branch nick: pkg-python-debian
timestamp: Sun 2007-08-19 09:36:45 +0200
message:
      extra ar members should be ignored (Closes: #438486). Also add the
      "file", "./file", and "/file" (Closes: #438603)
  * deb822.py
    - add a deprecation warning (printed on stderr) when accessing the module
      as a top-level one; it should be rather used as "debian_bundle.deb822"
modified:
  deb822.py
  debian/changelog
-------------- next part --------------
=== modified file 'deb822.py'
--- a/deb822.py	2007-07-01 22:15:45 +0000
+++ b/deb822.py	2007-08-19 07:36:45 +0000
@@ -1,5 +1,6 @@
+import sys
+print >> sys.stderr, "WARNING:",    \
+        "the 'deb822' top-level module is *DEPRECATED*,",   \
+        "please use 'debian_bundle.deb822'"
+
 from debian_bundle.deb822 import *
-
-# FIXME: Give a warning about path change.  Should we raise DeprecationWarning
-# (I vote no, since that will stop execution unless caught), or just print a
-# message to stderr?

=== modified file 'debian/changelog'
--- a/debian/changelog	2007-08-18 17:12:28 +0000
+++ b/debian/changelog	2007-08-19 07:36:45 +0000
@@ -3,12 +3,15 @@
   [ Stefano Zacchiroli ]
   * debfile.py
     - do not fail if extra ar members exist in a .deb, according to deb(5)
-      extra ar members should be ignored (closes: #438486). Also add the
+      extra ar members should be ignored (Closes: #438486). Also add the
       corresponding regression test to test_debfile.py
     - support both the (buggy) file naming scheme for TarFile of python << 2.5
       (e.g. "control") and of python >= 2.5 (e.g. "./control"). In addition,
       enable users to specify file members in three equivalent formats:
-      "file", "./file", and "/file" (closes: #438603)
+      "file", "./file", and "/file" (Closes: #438603)
+  * deb822.py
+    - add a deprecation warning (printed on stderr) when accessing the module
+      as a top-level one; it should be rather used as "debian_bundle.deb822"
 
   [ John Wright ]
   * examples/debfile/ar, examples/debfile/changelog_head,
@@ -17,7 +20,7 @@
       modules, rather than modules in the debian_bundle package
       (Closes: #438428)
 
- -- John Wright <john.wright at hp.com>  Sat, 18 Aug 2007 11:11:55 -0600
+ -- Stefano Zacchiroli <zack at debian.org>  Sun, 19 Aug 2007 09:35:01 +0200
 
 python-debian (0.1.4) unstable; urgency=low
 



More information about the pkg-python-debian-commits mailing list