From: "Jauhien Piatlicki" <piatlicki@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/g-sorcery:master commit in: gs_ctan/
Date: Wed, 17 Jul 2013 17:05:42 +0000 (UTC) [thread overview]
Message-ID: <1374080712.a85343a66d9657b6cfde5e7fa8caf977b99b6be0.jauhien@gentoo> (raw)
commit: a85343a66d9657b6cfde5e7fa8caf977b99b6be0
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Wed Jul 17 17:05:12 2013 +0000
Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
CommitDate: Wed Jul 17 17:05:12 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=a85343a6
gs_ctan/ctan_db: fetch and load data
---
gs_ctan/ctan_db.py | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/gs_ctan/ctan_db.py b/gs_ctan/ctan_db.py
index 0014c6c..f055823 100644
--- a/gs_ctan/ctan_db.py
+++ b/gs_ctan/ctan_db.py
@@ -23,14 +23,13 @@ class CtanDB(PackageDB):
def __init__(self, directory, repo_uri="", db_uri=""):
super(CtanDB, self).__init__(directory, repo_uri, db_uri)
- def generate_tree(self):
- tempdir = TemporaryDirectory()
-
- print(self.repo_uri)
- tlpdb_uri = self.repo_uri + '/tlpkg/texlive.tlpdb.xz'
- if wget(tlpdb_uri, tempdir.name):
- raise SyncError('sync failed: ' + self.repo_uri)
-
- del tempdir
-
- print("works")
+ def get_download_uries(self):
+ tlpdb_uri = self.repo_uri + "/tlpkg/texlive.tlpdb.xz"
+ return [tlpdb_uri]
+
+ def load_data(self, data_f):
+ data = data_f.read()
+ return data
+
+ def parse_data(self, data):
+ print(data)
next reply other threads:[~2013-07-17 17:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 17:05 Jauhien Piatlicki [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-17 23:19 [gentoo-commits] proj/g-sorcery:master commit in: gs_ctan/ Jauhien Piatlicki
2013-07-18 0:12 Jauhien Piatlicki
2013-07-18 0:12 Jauhien Piatlicki
2013-07-18 22:29 Jauhien Piatlicki
2013-07-19 8:36 Jauhien Piatlicki
2013-07-19 11:10 Jauhien Piatlicki
2013-07-19 11:23 Jauhien Piatlicki
2013-07-19 16:56 Jauhien Piatlicki
2013-07-22 16:57 Jauhien Piatlicki
2013-07-31 23:29 Jauhien Piatlicki
2013-08-01 15:58 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=1374080712.a85343a66d9657b6cfde5e7fa8caf977b99b6be0.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