... and indicate which tools need it in the package description.
At least on current Debian testing, `run0` is an adequate non-setuid
replacement for `sudo` for typical interactive purposes. The only
obstacle to me removing `sudo` from my system entirely is that
`ubuntu-dev-tools` depends on it, but only for tools that I don't need
any more.
Given that a significant subset of this package is useful without `sudo`
(e.g. `pull-debian-source` and friends, `syncpackage`, `backportpackage`
provided that you aren't asking it to build using `pbuilder`, and so
on), I think Recommends would be more appropriate than Depends. This
won't affect Ubuntu systems at present since `sudo` is still in the
minimal seed, and it also won't affect typical users who install with
Recommends, but it would make it easier for some users to choose to
reduce their security exposure.
Various methods in `ubuntutools.lp.lpapicache` iterated over collections
in a pessimal way: they fetched the collection and then fetched each
individual entry in it, when the same information was already available
in the collection response. Use more idiomatic launchpadlib code for
this instead, which is also much faster.
With multipart messages, like #1073996, `import-bug-from-debian` would
produce bug description with this:
```
[<email.message.Message object at 0x7fbe14096fa0>, <email.message.Message object at 0x7fbe15143820>]
```
For that kind of bug, it now produces a correct description with the
plain text parts concatenated in the description, the attachments added
as attachments, and the inline images converted to attachments with an
inline message placeholder.
See #981577 for a particularly weird case now gracefully handled.
If something weirder happens, then the tool will now abort with a clear
message instead of producing garbage.
Closes: #969510
- Correctly add ISC licenses to new files in ubuntutools/tests/*
as specified in debian/copyright
- Add GPL-3 licenses and correct attribution for:
- running-autopkgtests
- ubuntutools/running_autopkgtests.py