Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PureOS
Core Packages
python-apt
Commits
947c809c
Commit
947c809c
authored
Apr 09, 2020
by
Julian Andres Klode
Browse files
Also do locale magic for PkgRecordsGetShortDesc
Gbp-Dch: ignore
parent
41d866cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/pkgrecords.cc
View file @
947c809c
...
...
@@ -123,7 +123,7 @@ static PyObject *PkgRecordsGetMaintainer(PyObject *Self,void*) {
}
static
PyObject
*
PkgRecordsGetShortDesc
(
PyObject
*
Self
,
void
*
)
{
PkgRecordsStruct
&
Struct
=
GetStruct
(
Self
,
"ShortDesc"
);
return
(
Struct
.
Last
!=
0
)
?
CppPyString
(
Struct
.
Last
->
ShortDesc
())
:
0
;
return
(
Struct
.
Last
!=
0
)
?
CppPy
Locale
String
(
Struct
.
Last
->
ShortDesc
())
:
0
;
}
static
PyObject
*
PkgRecordsGetLongDesc
(
PyObject
*
Self
,
void
*
)
{
PkgRecordsStruct
&
Struct
=
GetStruct
(
Self
,
"LongDesc"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment