[Checkins] SVN: van.pydeb/trunk/ Add a test and changelog entry for previous fix.
Gediminas Paulauskas
menesis at pov.lt
Wed Sep 1 21:24:49 EDT 2010
Log message for revision 116118:
Add a test and changelog entry for previous fix.
Changed:
U van.pydeb/trunk/CHANGES.txt
U van.pydeb/trunk/van/pydeb/tests/translations.txt
-=-
Modified: van.pydeb/trunk/CHANGES.txt
===================================================================
--- van.pydeb/trunk/CHANGES.txt 2010-09-02 01:12:27 UTC (rev 116117)
+++ van.pydeb/trunk/CHANGES.txt 2010-09-02 01:24:48 UTC (rev 116118)
@@ -6,6 +6,8 @@
* Generate separate dependencies when both extra and version requirements are
specified (https://bugs.launchpad.net/bugs/628560)
+* py_to_bin_default: do not prepend python- if python package name already
+ starts with it.
1.3.2 (2010-06-22)
------------------
Modified: van.pydeb/trunk/van/pydeb/tests/translations.txt
===================================================================
--- van.pydeb/trunk/van/pydeb/tests/translations.txt 2010-09-02 01:12:27 UTC (rev 116117)
+++ van.pydeb/trunk/van/pydeb/tests/translations.txt 2010-09-02 01:24:48 UTC (rev 116118)
@@ -32,7 +32,9 @@
--------
If no special rules are specified, defaults that are (hopefully) intelligent
-will take effect. For converting the binary package name to the python package
+will take effect.
+
+For converting the binary package name to the python package
name they look like:
* If the package name starts with python- remove it:
@@ -47,6 +49,17 @@
>>> print pydeb.bin_to_py("foo")
foo
+For converting from python package name to binary, the name is lowercased, and
+python- is prepended:
+
+ >>> print pydeb.py_to_bin("Foo")
+ python-foo
+
+Unless it already starts with python:
+
+ >>> print pydeb.py_to_bin("python-foo")
+ python-foo
+
Overriding binary package translations
--------------------------------------
More information about the checkins
mailing list