summaryrefslogtreecommitdiff
path: root/libmount/python
AgeCommit message (Collapse)AuthorFilesLines
2014-01-14pylibmount: import directly from pylibmount in testsKarel Zak3-3/+9
This change does not have any impact to in a standard way installed libmount impact. It's simplification for in-tree tests. Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14pylibmount: remove unncessary subdirectoryKarel Zak2-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-12-02pylibmount: correctly import from pylibmount.soDave Reisner1-1/+1
Without this, python is unable to find the module: $ python -c 'import libmount' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.3/site-packages/libmount/__init__.py", line 1, in <module> from pylibmount import * ImportError: No module named 'pylibmount' Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-10-08various: fix mixing declarations and code compiler warnings [smatch]Sami Kerola2-2/+4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-10-01pylibmount: check for mnt_fs_get_tag() return value [coverity scan]Karel Zak1-1/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-01pylibmount: make tab parsers more robust [coverity scan]Karel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27build-sys: one install dir for all pylibmount stuffKarel Zak1-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: add pylibmount __init__.py EXTRA_DISTKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: install to the correct python dirsKarel Zak1-1/+3
It seems we have to call AM_PATH_PYTHON() monster to get pyexec (shared libs) and python (scripts) directories. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20pylibmount: rewrite to be py2/py3 universalOndrej Oprala8-116/+203
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20build-sys: support --with-python[={2,3}]Karel Zak1-2/+1
* we use pkg-config to get CGLAGS and LIBS, use package specific config (e.g. python-config) is non-sense. * default is to follow distribution and use pkg-config module name "python". This is probably symlink to python2.pc or python3.pc. * --with-python=2 forces to pkg-module "python2 >= 2" * --with-python=3 forces to pkg-module "python3 >= 3" Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22pylibmount: improve helps strings formattingKarel Zak1-218/+214
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22pylibmount: add debug messagesKarel Zak5-6/+114
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22pylibmount: use libmount reference countingKarel Zak5-26/+33
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21pylibmount: remove Context_get_table()Karel Zak1-29/+0
It's too problematic and too low-level to support it Py binding. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21pylibmount: cleanup cxt usageKarel Zak2-73/+15
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: remove unnecessary codeKarel Zak1-1/+0
It's enough to call mnt_free_fs() to remove fs from the table. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: coding style changes, don't touch Context() statusKarel Zak2-54/+50
It's better to follow libmnt_context status than allow to play any nasty games with this important variables in Python. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: use only public libmount API in tab.cKarel Zak1-34/+42
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: cleanup *_HELP strings formattingKarel Zak1-136/+144
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: use mnt_fs_set_userdata() rather than ->userdataKarel Zak1-12/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: fs.c - cleanup, remove libmount private stuffKarel Zak1-81/+97
* remove unnecessary comments * cleanup up strings format * remove direct access to private libmount stuff Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20pylibmount: remove bindsrc from fs APIKarel Zak1-41/+13
It's unnecessary and very low-level. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: cleanup object namesKarel Zak6-313/+315
Cxt -> Context Tab -> Table Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: coding style changes in tab.cKarel Zak1-22/+53
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: coding style changes in fs.cKarel Zak1-57/+72
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: coding style changes in context.cKarel Zak1-120/+201
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19build-sys: install pylibmount intoKarel Zak1-3/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: add regression testsOndrej Oprala4-0/+394
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: add __init__.pyOndrej Oprala1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-08-19pylibmount: basic codeOndrej Oprala6-2/+3045
[kzak@redhat.com: - split to more patches - split to more .c files] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19build-sys: add pylibmountKarel Zak1-0/+21
Signed-off-by: Karel Zak <kzak@redhat.com>