diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-06-23 12:00:36 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-06-23 12:00:36 +0200 |
commit | f2bd48d342518c11ec7deaeee5b437ac524514de (patch) | |
tree | 938e533ece907a0382eb2ec02c33cc755a724b12 /README | |
parent | 14116126ce7d1e1d48743bbed78599805af7747f (diff) | |
parent | f652c17f242fb743a167041521e9618039ae7296 (diff) | |
download | debian-dedup-f2bd48d342518c11ec7deaeee5b437ac524514de.tar.gz |
Merge branch yamlimport
+ Way faster on multiple cores.
+ More reliable, cause http connections do not time out when the db
blocks.
- Way slower on single core with contended io path. No clue why.
Still update_sharing.py makes up the bulk of processing time.
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 ------------------- |