[Debtorrent-commits] r67 - in /debtorrent/trunk: README.txt btlaunchmany.py downloads/ dtorrents/ftp.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages.dtorrent dtorrents/ftp.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages.dtorrent
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Sun May 27 01:38:36 UTC 2007
Author: camrdale-guest
Date: Sun May 27 01:38:36 2007
New Revision: 67
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=67
Log:
Updated instructions for testing next release.
Added:
debtorrent/trunk/downloads/
Removed:
debtorrent/trunk/dtorrents/ftp.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages.dtorrent
debtorrent/trunk/dtorrents/ftp.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages.dtorrent
Modified:
debtorrent/trunk/README.txt
debtorrent/trunk/btlaunchmany.py
Modified: debtorrent/trunk/README.txt
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/README.txt?rev=67&op=diff
==============================================================================
--- debtorrent/trunk/README.txt (original)
+++ debtorrent/trunk/README.txt Sun May 27 01:38:36 2007
@@ -12,24 +12,23 @@
cd debtorrent-<version>
-4. Update your package lists (as root):
+4. Copy into dtorrents/ the package lists in /var/lib/apt/lists/ that you
+ want to download from:
+
+ cp /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary-i386_Packages \
+ dtorrents/ftp.us.debian.org_debian_dists_etch_main_binary-i386_Packages
+
+ Or, if you want to download from all of the package lists:
+
+ cp /var/lib/apt/lists/*_Packages dtorrents/
+
+5. Update your package lists (as root):
apt-get update
-5. Choose package lists to download from:
+6. Start the download:
- a) Either download from all lists in /var/lib/apt/lists/
-
- b) Or, create a directory containin only the Packages files from
- /var/lib/apt/lists/ that you want to download from.
-
-6. Create a directory for the download:
-
- mkdir /tmp/debtorrent
-
-7. Start the download:
-
- btlaunchmany.py /var/lib/apt/lists --saveas /tmp/debtorrent/ --status_to_download <x>
+ ./btlaunchmany.py dtorrents/ --saveas downloads/ --status_to_download <x>
Set the <x> value to:
@@ -47,51 +46,60 @@
You can use some of the options to btlaunchmany (to see them, run it
without arguments) but most are untested.
-8. Wait for the download to complete:
+7. Wait for the downloads to complete:
If you have any problems downloading, go to
http://dttracker.debian.net:6969
to check if your download is active. You can find which one is yours by
- running btmakemetafile on a Packages file:
+ running btshowmetainfo on a Packages file to display the info hash of
+ the file:
- btmakemetafile.py Packages Packages.dtorrent
-
- and then btshowmetainfo on the result to display the info hash of the file:
-
- btshowmetainfo.py Packages.dtorrent | grep "info hash"
+ btshowmetainfo.py ftp.us.debian.org_debian_dists_etch_main_binary-i386_Packages | grep "info hash"
If it is active, but you still can't download, or if you get errors from
running any of the programs, please post the problem/error to:
debtorrent-devel at lists.alioth.debian.org
-9. Copy the Packages files into the download directories, for example:
-
- cp /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary-amd64_Packages \
- /tmp/debtorrent/ftp.us.debian.org_debian_dists_etch_main_binary-amd64/Packages
-
-10. gzip the copied Packages files, for example:
-
- gzip /tmp/debtorrent/ftp.us.debian.org_debian_dists_etch_main_binary-amd64/Packages
-
-
-11. Add the download directories to the top of your /etc/apt/sources.list,
+8. Add the download directories to the top of your /etc/apt/sources.list,
for example:
- deb file:/tmp/debtorrent ftp.us.debian.org_debian_dists_etch_main_binary-amd64/
- deb file:/tmp/debtorrent ftp.us.debian.org_debian_dists_etch_contrib_binary-amd64/
+ deb file:/tmp/debtorrent/downloads/ftp.us.debian.org_debian_dists_etch_main_binary-amd64 ./
+ deb file:/tmp/debtorrent/downloads/ftp.us.debian.org_debian_dists_etch_contrib_binary-amd64 ./
etc...
+
+ There should be one entry for every directory in your downloads/ directory
+ that completed downloading. Do NOT add directories for downloads that did
+ not complete, as the pre-allocated empty files in them will cause MD5 sum
+ errors which will prevent apt from installing the packages.
+
+ The lines must be added to the top of the sources.list in order for apt
+ to get the files from there first rather than downloading them from the
+ mirror listed later in the file.
-12. Update your package lists (as root):
+9. Link the Packages files into the download directories, for example:
+
+ ln -s dtorrents/ftp.us.debian.org_debian_dists_etch_main_binary-i386_Packages \
+ downloads/ftp.us.debian.org_debian_dists_etch_main_binary-i386/Packages
+
+ This is necessary for the next step to work, that is for apt to recognize
+ that the download directories are in fact package repositories.
+
+10. Update your package lists (as root) to see the newly downloaded files:
apt-get update
-13. Install or upgrade packages normally:
+11. Install or upgrade packages normally (as root):
apt-get install ...
apt-get upgrade
+ apt-get dist-upgrade
+
+
+For future upgrades/installs, repeat steps 5-11, omitting step 9 (1-4 and 9
+are not needed as they were only for initialization).
Known Bugs
Modified: debtorrent/trunk/btlaunchmany.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/btlaunchmany.py?rev=67&op=diff
==============================================================================
--- debtorrent/trunk/btlaunchmany.py (original)
+++ debtorrent/trunk/btlaunchmany.py Sun May 27 01:38:36 2007
@@ -38,7 +38,7 @@
True = 1
False = 0
-PROFILER = True
+PROFILER = False
def hours(n):
"""Formats seconds into a human-readable time.
More information about the Debtorrent-commits
mailing list