Commits on Source (15)
-
Jelmer Vernooij authored
-
Stuart Prescott authored
collections.Mapping and collections.MutableMapping have moved into collections.abc; search both locations so that they are found with both Python 2.7 and Python 3.8 (and get rid of the DeprecationWarning with Python 3.7). Thanks to Jakub Wilk for the bug report. Closes: #914737
-
Stuart Prescott authored
-
Stuart Prescott authored
-
Stuart Prescott authored
-
Stuart Prescott authored
-
Stuart Prescott authored
Add get_version and set_version methods to Deb822-subclasses where it makes sense to have such versions. (Closes: #901651)
-
Stuart Prescott authored
Deb822.iter_paragraphs() can use apt_pkg and that is the default usage for Sources and Packages files, for instance. If given a file-like object that is not actually a filehandle, however, iter_paragraphs will switch to its own internal parser which can have slightly different behaviour. This patch causes a warning to be emitted if the caller has requested that the apt_pkg parser be used but iter_paragraphs cannot honour that request. See discussion in https://bugs.debian.org/913274
-
Stuart Prescott authored
-
Stuart Prescott authored
Requirement for apt_pkg.TagFile has changed over time so updating the test to actually test what is needed and renaming the function is appropriate.
-
Stuart Prescott authored
Allow iter_paragraphs to be tuned as to whether it splits paragraphs where the separator is a line containing whitespace. When working with debian/control, iter_paragraphs must split on whitespace-only lines (see #715558 for example). When working with Packages or Sources, apt_pkg does not split on whitespace containing lines and so neither should the internal parser. (Closes: #913274)
-
Stuart Prescott authored
-
Stuart Prescott authored
-
Stuart Prescott authored
-
Stuart Prescott authored
Showing
- .gitlab-ci.yml 1 addition, 1 deletion.gitlab-ci.yml
- debian/changelog 18 additions, 0 deletionsdebian/changelog
- debian/control 1 addition, 1 deletiondebian/control
- debian/rules 8 additions, 3 deletionsdebian/rules
- docs/contributing.rst 5 additions, 0 deletionsdocs/contributing.rst
- lib/debian/arfile.py 0 additions, 1 deletionlib/debian/arfile.py
- lib/debian/changelog.py 1 addition, 1 deletionlib/debian/changelog.py
- lib/debian/deb822.py 141 additions, 37 deletionslib/debian/deb822.py
- lib/debian/debfile.py 1 addition, 1 deletionlib/debian/debfile.py
- lib/debian/tests/test_deb822.py 103 additions, 20 deletionslib/debian/tests/test_deb822.py