summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-06-10 18:22:29 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-06-10 18:22:29 +0200
commit1359895781ec1f7887121984abc46aefc61c6717 (patch)
tree92810d3399c93b793b9bf9ad97ae467b07bdb18d /README
parent3667c29f675599b9f3e098dd9b708c1d099d2b8a (diff)
downloaddebian-dedup-1359895781ec1f7887121984abc46aefc61c6717.tar.gz
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.
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 9 insertions, 5 deletions
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
-------------------