--with-sources, downloading source packages flag.

This commit is contained in:
Andrey Smirnov
2014-02-14 23:58:09 +04:00
parent 519082a61e
commit b2523b4215
4 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -85,7 +85,9 @@ func aptlyMirrorCreate(cmd *commander.Command, args []string) error {
return err
}
repo, err := debian.NewRemoteRepo(args[0], args[1], args[2], args[3:], context.architecturesList)
downloadSources := utils.Config.DownloadSourcePackages || cmd.Flag.Lookup("with-sources").Value.Get().(bool)
repo, err := debian.NewRemoteRepo(args[0], args[1], args[2], args[3:], context.architecturesList, downloadSources)
if err != nil {
return fmt.Errorf("unable to create mirror: %s", err)
}
@@ -263,6 +265,7 @@ ex:
}
cmd.Flag.Bool("ignore-signatures", false, "disable verification of Release file signatures")
cmd.Flag.Bool("with-sources", false, "download source packages")
cmd.Flag.Var(&keyRings, "keyring", "gpg keyring to use when verifying Release file (could be specified multiple times)")
return cmd
+2 -1
View File
@@ -6,5 +6,6 @@
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"gpgDisableSign": false,
"gpgDisableVerify": false
"gpgDisableVerify": false,
"downloadSourcePackages": false
}
@@ -8,4 +8,5 @@ ex:
Options:
-ignore-signatures=false: disable verification of Release file signatures
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
-with-sources=false: download source packages
+1
View File
@@ -6,3 +6,4 @@ aptly mirror create - create new mirror of Debian repository
Options:
-ignore-signatures=false: disable verification of Release file signatures
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
-with-sources=false: download source packages