From: "Jauhien Piatlicki" <piatlicki@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/g-sorcery:master commit in: g_elpa/
Date: Mon, 15 Jul 2013 20:47:26 +0000 (UTC) [thread overview]
Message-ID: <1373921006.f1325cea8675808aa3b1ff4f63f30ef2d22b9b18.jauhien@gentoo> (raw)
commit: f1325cea8675808aa3b1ff4f63f30ef2d22b9b18
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Mon Jul 15 20:43:26 2013 +0000
Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
CommitDate: Mon Jul 15 20:43:26 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=f1325cea
g_elpa/elpa_db: filter description variable
---
g_elpa/elpa_db.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/g_elpa/elpa_db.py b/g_elpa/elpa_db.py
index 84d741c..f8305ac 100644
--- a/g_elpa/elpa_db.py
+++ b/g_elpa/elpa_db.py
@@ -55,7 +55,11 @@ class ElpaDB(PackageDB):
desc = entry[2].value()
pkg = self._s_get_package(entry[0], desc[0])
source_type = desc[3].value()
- description = desc[2]
+
+ allowed_ords = set(range(ord('a'), ord('z'))) | set(range(ord('A'), ord('Z'))) | \
+ set(range(ord('0'), ord('9'))) | set(list(map(ord,['+', '_', '-'])))
+ description = "".join([x for x in desc[2] if ord(x) in allowed_ords])
+
deps = desc[1]
dependencies = []
depend = []
next reply other threads:[~2013-07-15 20:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 20:47 Jauhien Piatlicki [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-18 17:26 [gentoo-commits] proj/g-sorcery:master commit in: g_elpa/ Jauhien Piatlicki
2013-07-17 15:41 Jauhien Piatlicki
2013-07-16 23:09 Jauhien Piatlicki
2013-07-16 23:09 Jauhien Piatlicki
2013-07-16 23:09 Jauhien Piatlicki
2013-07-16 22:07 Jauhien Piatlicki
2013-07-15 23:01 Jauhien Piatlicki
2013-07-04 21:26 Jauhien Piatlicki
2013-07-02 11:32 Jauhien Piatlicki
2013-07-02 8:39 Jauhien Piatlicki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373921006.f1325cea8675808aa3b1ff4f63f30ef2d22b9b18.jauhien@gentoo \
--to=piatlicki@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox