From 1359895781ec1f7887121984abc46aefc61c6717 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 10 Jun 2013 18:22:29 +0200 Subject: split the import phase to a yaml stream importpkg.py now emits a yaml stream instead of updating the database. The acutual updating now happens in readyaml.py. In this process autoimport.py was significantly reworked to import packages in parallel. --- README | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'README') diff --git a/README b/README index 2d362f9..a5ce9d7 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ Required packages ----------------- - aptitude install python python-debian python-lzma curl python-jinja2 python-werkzeug sqlite3 python-imaging + aptitude install python python-debian python-lzma curl python-jinja2 python-werkzeug sqlite3 python-imaging python-yaml python-concurrent.futures Create a database ----------------- @@ -15,13 +15,17 @@ permanent. Import packages --------------- -Import individual packages by feeding them to importpkg.py: +Import individual packages by feeding them to importpkg.py and readyaml.py: - ls -t /var/cache/apt/archives/*.deb | while read f; do echo $f; ./importpkg.py < $f || break; done + ./importpkg.py < somepkg.deb | ./readyaml.py -Import a full mirror:: +You can import your local apt cache: - ./autoimport.py http://your.mirror.example/debian + ./autoimport.py /var/cache/apt/archives + +Import a full mirror (only http supported): + + ./autoimport.py -n -p http://your.mirror.example/debian Viewing the results ------------------- -- cgit v1.2.3