]>
Commit | Line | Data |
---|---|---|
18edfe75 MT |
1 | #!/usr/bin/python |
2 | ||
3 | import base | |
4 | ||
5 | from errors import * | |
6 | ||
7 | Pakfire = base.Pakfire | |
8 | ||
9 | def install(requires, **pakfire_args): | |
10 | pakfire = Pakfire(**pakfire_args) | |
11 | ||
12 | return pakfire.install(requires) | |
13 | ||
e0b99370 MT |
14 | def localinstall(files, **pakfire_args): |
15 | pakfire = Pakfire(**pakfire_args) | |
16 | ||
17 | return pakfire.localinstall(files) | |
18 | ||
a39fd08b MT |
19 | def remove(what, **pakfire_args): |
20 | pakfire = Pakfire(**pakfire_args) | |
21 | ||
22 | return pakfire.remove(what) | |
18edfe75 MT |
23 | |
24 | def update(pkgs, **pakfire_args): | |
25 | pakfire = Pakfire(**pakfire_args) | |
26 | ||
27 | return pakfire.update(pkgs) | |
28 | ||
29 | def info(patterns, **pakfire_args): | |
30 | # Create pakfire instance. | |
31 | pakfire = Pakfire(**pakfire_args) | |
32 | ||
33 | return pakfire.info(patterns) | |
34 | ||
35 | def search(pattern, **pakfire_args): | |
36 | # Create pakfire instance. | |
37 | pakfire = Pakfire(**pakfire_args) | |
38 | ||
39 | return pakfire.search(pattern) | |
40 | ||
41 | def groupinstall(group, **pakfire_args): | |
42 | pakfire = Pakfire(**pakfire_args) | |
43 | ||
44 | return pakfire.groupinstall(group) | |
45 | ||
46 | def grouplist(group, **pakfire_args): | |
47 | pakfire = Pakfire(**pakfire_args) | |
48 | ||
49 | return pakfire.grouplist(group) | |
50 | ||
51 | def build(pkg, **kwargs): | |
52 | return Pakfire.build(pkg, **kwargs) | |
53 | ||
54 | def shell(pkg, **kwargs): | |
55 | return Pakfire.shell(pkg, **kwargs) | |
56 | ||
50f96897 MT |
57 | def dist(pkgs, **kwargs): |
58 | return Pakfire.dist(pkgs, **kwargs) | |
18edfe75 MT |
59 | |
60 | def provides(patterns, **pakfire_args): | |
61 | # Create pakfire instance. | |
62 | pakfire = Pakfire(**pakfire_args) | |
63 | ||
64 | return pakfire.provides(patterns) | |
65 | ||
66 | def requires(patterns, **pakfire_args): | |
67 | # Create pakfire instance. | |
68 | pakfire = Pakfire(**pakfire_args) | |
69 | ||
70 | return pakfire.requires(requires) | |
71 | ||
8276111d | 72 | def repo_create(path, input_paths, type="binary", **pakfire_args): |
18edfe75 MT |
73 | pakfire = Pakfire(**pakfire_args) |
74 | ||
8276111d | 75 | return pakfire.repo_create(path, input_paths, type=type) |
18edfe75 MT |
76 | |
77 | def repo_list(**pakfire_args): | |
78 | pakfire = Pakfire(**pakfire_args) | |
79 | ||
80 | return pakfire.repo_list() | |
31267a64 MT |
81 | |
82 | def clean_all(**pakfire_args): | |
83 | pakfire = Pakfire(**pakfire_args) | |
84 | ||
85 | return pakfire.clean_all() | |
35d89fd7 MT |
86 | |
87 | def check(**pakfire_args): | |
88 | pakfire = Pakfire(**pakfire_args) | |
89 | ||
90 | return pakfire.check() |