aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-02-24 11:56:38 -0800
committerZac Medico <zmedico@gentoo.org>2021-02-26 23:43:23 -0800
commitfd04c5fb1619f86381b5d5e6ff66b20fa3967c43 (patch)
treec8f94ee19d8c4932317ca54f890d75bb923523ea /man
parentemirrordist: support minimal object as options for use in unit tests (diff)
downloadportage-fd04c5fb1619f86381b5d5e6ff66b20fa3967c43.tar.gz
portage-fd04c5fb1619f86381b5d5e6ff66b20fa3967c43.tar.bz2
portage-fd04c5fb1619f86381b5d5e6ff66b20fa3967c43.zip
emirrordist: add --content-db option required for content-hash layout (bug 756778)
Add a --content-db option which is required for the content-hash layout because its file listings return content digests instead of distfile names. The content db serves to translate content digests to distfiles names, and distfiles names to content digests. All keys have one or more prefixes separated by colons. For a digest key, the first prefix is "digest" and the second prefix is the hash algorithm name. For a filename key, the prefix is "filename". The value associated with a digest key is a set of file names. The value associated with a distfile key is a set of content revisions. Each content revision is expressed as a dictionary of digests which is suitable for construction of a DistfileName instance. A given content digest will translate to multiple distfile names if multiple associations have been created via the content db add method. The relationship between a content digest and a distfile name is similar to the relationship between an inode and a hardlink. Bug: https://bugs.gentoo.org/756778 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'man')
-rw-r--r--man/emirrordist.16
1 files changed, 5 insertions, 1 deletions
diff --git a/man/emirrordist.1 b/man/emirrordist.1
index 45108ef8c..7ad10dfd0 100644
--- a/man/emirrordist.1
+++ b/man/emirrordist.1
@@ -1,4 +1,4 @@
-.TH "EMIRRORDIST" "1" "Dec 2015" "Portage VERSION" "Portage"
+.TH "EMIRRORDIST" "1" "Feb 2021" "Portage VERSION" "Portage"
.SH "NAME"
emirrordist \- a fetch tool for mirroring of package distfiles
.SH SYNOPSIS
@@ -66,6 +66,10 @@ reporting purposes. Opened in append mode.
Log file for scheduled deletions, with tab\-delimited output, for
reporting purposes. Overwritten with each run.
.TP
+\fB\-\-content\-db\fR=\fIFILE\fR
+Database file used to pair content digests with distfiles names
+(required fo content\-hash layout).
+.TP
\fB\-\-delete\fR
Enable deletion of unused distfiles.
.TP