diff --git a/README.md b/README.md index a3e6135f0bc2101e7707a32472f0fe1b6bc8cd42..17f8eeaeb45e3754062c590ac57225f2d0ee356e 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,10 @@ This will allow you to use, on your host, a command such as: and have your packages automatically added to the repository at /var/repo/NAME/. +Note that when urepo is run as a SSH forced command, some command-line +options are not available for security reasons (most importantly +*--root*). + ### Bundle format On the wire, a bundle is just a tar file of .deb packages, without @@ -116,7 +120,7 @@ Instead of always specifying release metadata options such as configuration file named *.urepo.conf* in the repository directory. This should be a YAML-encoded file where you can specify most of the -Release attributes: +release metadata attributes: * *origin* * *suite* @@ -124,14 +128,14 @@ Release attributes: * *label* * *description* -In addition two attributes control the behavior of urepo itself: +In addition, two attributes control the behavior of urepo itself: -* *keep* (equivalent to the *--keep-last* command-line option), number - of old package versions to keep +* *keep* (equivalent to the *--keep* command-line option), number of + old versions of each package to keep * *private-key* (equivalent to the *--private-key* command-line option), path to the armored GPG secret key to be used for signing (without passphrase) Urepo will look for such configuration in a file named *.urepo.conf* -in the repository directory, as well as in *~/.urepo.conf* (useful to -set a site-wide GPG secret key, for instance). +in the repository directory, as well as in *~/.urepo/config* (useful +to set a site-wide GPG secret key, for instance). diff --git a/urepo.go b/urepo.go index f8f8950198a022797573221b5f6ece363ec81d5d..2bccda1f4f6ed1a5106c1e6a03e78325539d79f1 100644 --- a/urepo.go +++ b/urepo.go @@ -75,7 +75,7 @@ func loadConfig(path string, cfg *repoConfig) error { } func (c *repoConfig) setFlags(f *flag.FlagSet) { - f.IntVar(&c.Keep, "keep-last", c.Keep, "old package `versions` to keep") + f.IntVar(&c.Keep, "keep", c.Keep, "old package `versions` to keep") f.StringVar(&c.Origin, "origin", c.Origin, "repository `origin`") f.StringVar(&c.Suite, "suite", c.Suite, "repository `suite`") f.StringVar(&c.Codename, "codename", c.Codename, "repository `codename` (defaults to the value of --repository)")