mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Sort Architecture (LP: #681131)
This commit is contained in:
parent
7e8423a470
commit
a27c19cb5c
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -9,6 +9,7 @@ ubuntu-dev-tools (0.107) UNRELEASED; urgency=low
|
||||
- Add one-space-indentation option: --short-indent
|
||||
- Remove null-entry from trailing comma in sorted lists
|
||||
- Add configurable debian directory location
|
||||
- Sort Architecture (LP: #681131)
|
||||
* dgetlp, grab-merge, pull-lp-source, syncpackage: Export DEB_VENDOR=Ubuntu
|
||||
when unpacking source packages. 3.0 (quilt) has optional per-vendor patch
|
||||
series.
|
||||
@ -17,7 +18,7 @@ ubuntu-dev-tools (0.107) UNRELEASED; urgency=low
|
||||
* wrap-and-sort: Remove duplicate items from sorted lists.
|
||||
* syncpackage: Fix error message for failed downloads.
|
||||
|
||||
-- Benjamin Drung <bdrung@ubuntu.com> Thu, 25 Nov 2010 23:48:55 +0100
|
||||
-- Stefano Rivera <stefanor@ubuntu.com> Fri, 26 Nov 2010 18:01:54 +0200
|
||||
|
||||
ubuntu-dev-tools (0.106) experimental; urgency=low
|
||||
|
||||
|
@ -63,6 +63,10 @@ class Control(object):
|
||||
if "Uploaders" in paragraph:
|
||||
self._wrap_field(paragraph, "Uploaders", wrap_always,
|
||||
short_indent, False)
|
||||
if "Architecture" in paragraph:
|
||||
archs = set(paragraph["Architecture"].split())
|
||||
paragraph["Architecture"] = " ".join(
|
||||
sorted(archs, key=lambda x: (1 - int("any" in x), x)))
|
||||
|
||||
def _wrap_field(self, control, entry, wrap_always, short_indent, sort=True):
|
||||
packages = map(lambda x: x.strip(), control[entry].split(","))
|
||||
|
Loading…
x
Reference in New Issue
Block a user