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 wherehosthas a “:”, that’ll be treated as an expansion for config strings. For instance:ppa:paultag/fluxboxwill expand any%(ppa)sstrings 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.