Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 674353 Details for
Bug 892798
[PATCH] RFE: Some API to test the version of python-lvm from modules using it
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Quick patch to add lvm.__version__ etc.
pylvm2-version.patch (text/plain), 880 bytes, created by
James Antill
on 2013-01-07 21:25:11 UTC
(
hide
)
Description:
Quick patch to add lvm.__version__ etc.
Filename:
MIME Type:
Creator:
James Antill
Created:
2013-01-07 21:25:11 UTC
Size:
880 bytes
patch
obsolete
>commit d8c21b36a43814551196014dbc8e8d7ba0087290 >Author: James Antill <james@and.org> >Date: Thu Jan 3 15:04:37 2013 -0500 > > Add version data to python lvm module, needs to be updated by hand. > >diff --git a/liblvm.c b/liblvm.c >index c59be52..b0e55cb 100644 >--- a/liblvm.c >+++ b/liblvm.c >@@ -1681,6 +1681,7 @@ PyMODINIT_FUNC > initlvm(void) > { > PyObject *m; >+ PyObject *v; > > libh = lvm_init(NULL); > >@@ -1709,5 +1710,13 @@ initlvm(void) > PyModule_AddObject(m, "LibLVMError", LibLVMError); > } > >+ v = PyString_FromString("1.9.3"); >+ PyModule_AddObject(m, "__version__", v); >+ v = PyTuple_New(3); >+ PyTuple_SET_ITEM(v, 0, Py_BuildValue("i", 1)); >+ PyTuple_SET_ITEM(v, 1, Py_BuildValue("i", 9)); >+ PyTuple_SET_ITEM(v, 2, Py_BuildValue("i", 3)); >+ PyModule_AddObject(m, "__version_info__", v); >+ > Py_AtExit(liblvm_cleanup); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 892798
: 674353