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

apt: Add apt::setting defined type. #428

Merged
merged 1 commit into from
Feb 21, 2015
Merged

Conversation

daenney
Copy link

@daenney daenney commented Feb 20, 2015

This is a 'base' type. It's a simple wrapper around a file which takes type, ensure, content, source and file_perms. It is intended for usage by apt::conf, apt::source and an upcoming apt::pref.

@daenney daenney added this to the 2.0 milestone Feb 20, 2015
@daenney daenney force-pushed the daenney/apt-setting branch 2 times, most recently from 581e283 to 21ff418 Compare February 20, 2015 12:55
}

if $type == 'list' {
$_priority = ''

Choose a reason for hiding this comment

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

Should we have a warning if $type == 'list' and $priority, or is this obvious to apt users?

Copy link
Author

Choose a reason for hiding this comment

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

Priority doesn't make sense for list, it's not a concept that sources recognise so there's no real use or need for it. We should document that we ignore priority in that case.

Choose a reason for hiding this comment

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

Ok, cool. At some point there will be massive doc updates, I ... haven't been keeping up with that.

@underscorgan
Copy link

@daenney commented, assigned back to you for response.

This is a 'base' type. It's a simple wrapper around a file which takes
`type`, `ensure`, `content`, `source` and `file_perms`. It is intended
for usage by `apt::conf`, `apt::source` and an upcoming `apt::pref`.
@daenney daenney force-pushed the daenney/apt-setting branch from 21ff418 to 76c88af Compare February 21, 2015 19:13
@daenney daenney assigned underscorgan and unassigned daenney Feb 21, 2015
underscorgan pushed a commit that referenced this pull request Feb 21, 2015
apt: Add apt::setting defined type.
@underscorgan underscorgan merged commit e75e603 into next Feb 21, 2015
@underscorgan
Copy link

Thanks @daenney !

@daenney daenney deleted the daenney/apt-setting branch February 21, 2015 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants