diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-06-10 18:22:29 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-06-10 18:22:29 +0200 |
commit | 1359895781ec1f7887121984abc46aefc61c6717 (patch) | |
tree | 92810d3399c93b793b9bf9ad97ae467b07bdb18d /README | |
parent | 3667c29f675599b9f3e098dd9b708c1d099d2b8a (diff) | |
download | debian-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-- | README | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 ------------------- |