~racb/git-ubuntu:tag-print-name-only

Last commit made on 2017-07-11
Get this branch:
git clone -b tag-print-name-only https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
tag-print-name-only
Repository:
lp:~racb/git-ubuntu

Recent commits

3fbe00e... by Robie Basak

tag: add --print-name-only

This is useful to get the dep14 substitution for scripting.

7515c89... by Robie Basak

tag: set logging level to WARNING by default

This suppresses the INFO output by the GitRepository output so that we
have full control over our output.

b833422... by Robie Basak

Open dsc in binary mode for better decoding

Prior to Debian policy 3.8.1.0 (around March 2009), dsc files could be
encoded in anything as no encoding was mandated.

ubuntutools.archive.Dsc already has some support for auto-detection. It
appears to work, but the dsc must be opened in binary mode for this to
work.

This may mutate hashes if any other dscs are decoded differently as a
consequence of this change.

LP: #1700846

0118ac0... by Nish Aravamudan

git ubuntu: emit newline after input() prompt

Otherwise, the line doesn't break and it's not clear where the user's input
starts.

a8127b0... by Nish Aravamudan

git ubuntu: quieten keyring logging

502dbb3... by Nish Aravamudan

gitubuntu/git_repository: correct search for string in file

We were calling open() on an file-like object, which was already open(). Also,
we need to seek to 0 in order to read in the entire file as written.

Fixes: 62550c080 ('GitUbuntuRepository: properly handle missing
debian/changelog')

38c1859... by Nish Aravamudan

gitubuntu/git_repository: open temporary file in same mode as named file

94d0f79... by Nish Aravamudan

git ubuntu import: leverage raise ... from ... syntax

This provides a bit of a cleaner stacktrace output on errors when we are
propogating/transforming exceptions. Per PEP 3134, this is present in
python 3.0+.

038533a... by Nish Aravamudan

git ubuntu import: remove unnecessary try/catch

We are just going to re-raise an exception in the catch, so don't even
bother try/catch'ing it.

Also clean up some style.

b7c23c6... by Nish Aravamudan

git ubuntu build: correct search for matching upstream version

The loop only makes sense if the publishing records are in version
order. That is not the case before this change, as they are in published
order and leads to false output (e.g., for sssd).