HCoop
/
hcoop
/
domtool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e7777d
)
apt: Handle Description-en replacing Description in apt-cache output
author
Clinton Ebadi
<clinton@unknownlamer.org>
Mon, 6 Oct 2014 04:13:29 +0000
(
00:13
-0400)
committer
Clinton Ebadi
<clinton@unknownlamer.org>
Mon, 6 Oct 2014 04:13:29 +0000
(
00:13
-0400)
Ideally we'd care about languages other than English, but this works.
src/plugins/apt.sml
patch
|
blob
|
blame
|
history
diff --git
a/src/plugins/apt.sml
b/src/plugins/apt.sml
index
a7ae93a
..
da561af
100644
(file)
--- a/
src/plugins/apt.sml
+++ b/
src/plugins/apt.sml
@@
-44,6
+44,8
@@
fun info name =
loop (SOME (String.substring (line, 9, size line - 10)), descr)
else if size line >= 13 andalso String.substring (line, 0, 13) = "Description: " then
loop (section, SOME (String.substring (line, 13, size line - 14)))
+ else if size line >= 16 andalso String.substring (line, 0, 16) = "Description-en: " then
+ loop (section, SOME (String.substring (line, 16, size line - 17)))
else
loop (section, descr)
in