Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error output on upload #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trainman419
Copy link
Contributor

Two patches:

  1. Improve the representations of the ChangesFile object so that it tells us which file it was constructed from
  2. Display which packages were found that were invalid.


extraneous_packages = set(changefiles) - set(valid_changes)
if extraneous_packages:
parser.error("Invalid packages detected in folders %s. [%s]" %
(options.folders, extraneous_packages))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between extraneous and invalid packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extraneous is a set of ChangesFile objects that indicate which changes files are problematic. invalid_changes is new; it's a list of the binary package names from within those changes files that were declared be be invalid.

The result here is that the error output is now something like [ ['python-foo-bar'] ] instead of [ ChangesFile(...) ]

@tfoote tfoote removed their assignment Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants