Upload Target / Profile Implementation¶
This contains a lot of backing code to get at profiles.
Commonly used functions¶
- dput.profile.load_profile(host)¶
Load a profile, for a given host
host
. In the case wherehost
has a “:”, that’ll be treated as an expansion for config strings. For instance:ppa:paultag/fluxbox
will expand any%(ppa)s
strings topaultag/fluxbox
. Comes in super handy.
- dput.profile.profiles()¶
Get a list of all profiles we know about. It returns a set of strings, which can be accessed with
load_profile()
Multi Configuration Implementation¶
Warning
This is mostly just used internally, please don’t use this directly unless you know what you’re doing(tm). In most cases, dput.profile.load_profile()
and dput.profile.profiles()
will do the trick.