mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Merge branch 'dstelter-master'
This commit is contained in:
@@ -43,6 +43,7 @@ func aptlyMirrorCreate(cmd *commander.Command, args []string) error {
|
|||||||
repo.Filter = context.Flags().Lookup("filter").Value.String()
|
repo.Filter = context.Flags().Lookup("filter").Value.String()
|
||||||
repo.FilterWithDeps = context.Flags().Lookup("filter-with-deps").Value.Get().(bool)
|
repo.FilterWithDeps = context.Flags().Lookup("filter-with-deps").Value.Get().(bool)
|
||||||
repo.SkipComponentCheck = context.Flags().Lookup("force-components").Value.Get().(bool)
|
repo.SkipComponentCheck = context.Flags().Lookup("force-components").Value.Get().(bool)
|
||||||
|
repo.SkipArchitectureCheck = context.Flags().Lookup("force-architectures").Value.Get().(bool)
|
||||||
|
|
||||||
if repo.Filter != "" {
|
if repo.Filter != "" {
|
||||||
_, err = query.Parse(repo.Filter)
|
_, err = query.Parse(repo.Filter)
|
||||||
@@ -97,6 +98,7 @@ Example:
|
|||||||
cmd.Flag.String("filter", "", "filter packages in mirror")
|
cmd.Flag.String("filter", "", "filter packages in mirror")
|
||||||
cmd.Flag.Bool("filter-with-deps", false, "when filtering, include dependencies of matching packages as well")
|
cmd.Flag.Bool("filter-with-deps", false, "when filtering, include dependencies of matching packages as well")
|
||||||
cmd.Flag.Bool("force-components", false, "(only with component list) skip check that requested components are listed in Release file")
|
cmd.Flag.Bool("force-components", false, "(only with component list) skip check that requested components are listed in Release file")
|
||||||
|
cmd.Flag.Bool("force-architectures", false, "(only with architecture list) skip check that requested architectures are listed in Release file")
|
||||||
cmd.Flag.Var(&keyRingsFlag{}, "keyring", "gpg keyring to use when verifying Release file (could be specified multiple times)")
|
cmd.Flag.Var(&keyRingsFlag{}, "keyring", "gpg keyring to use when verifying Release file (could be specified multiple times)")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|||||||
+4
-2
@@ -60,6 +60,8 @@ type RemoteRepo struct {
|
|||||||
FilterWithDeps bool
|
FilterWithDeps bool
|
||||||
// SkipComponentCheck skips component list verification
|
// SkipComponentCheck skips component list verification
|
||||||
SkipComponentCheck bool
|
SkipComponentCheck bool
|
||||||
|
// SkipArchitectureCheck skips architecture list verification
|
||||||
|
SkipArchitectureCheck bool
|
||||||
// Status marks state of repository (being updated, no action)
|
// Status marks state of repository (being updated, no action)
|
||||||
Status int
|
Status int
|
||||||
// WorkerPID is PID of the process modifying the mirror (if any)
|
// WorkerPID is PID of the process modifying the mirror (if any)
|
||||||
@@ -316,9 +318,9 @@ ok:
|
|||||||
architectures = utils.StrSlicesSubstract(architectures, []string{"source"})
|
architectures = utils.StrSlicesSubstract(architectures, []string{"source"})
|
||||||
if len(repo.Architectures) == 0 {
|
if len(repo.Architectures) == 0 {
|
||||||
repo.Architectures = architectures
|
repo.Architectures = architectures
|
||||||
} else {
|
} else if !repo.SkipArchitectureCheck {
|
||||||
err = utils.StringsIsSubset(repo.Architectures, architectures,
|
err = utils.StringsIsSubset(repo.Architectures, architectures,
|
||||||
fmt.Sprintf("architecture %%s not available in repo %s", repo))
|
fmt.Sprintf("architecture %%s not available in repo %s, use -force-architectures to override", repo))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Options:
|
|||||||
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
||||||
-filter="": filter packages in mirror
|
-filter="": filter packages in mirror
|
||||||
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
||||||
|
-force-architectures=false: (only with architecture list) skip check that requested architectures are listed in Release file
|
||||||
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
||||||
-ignore-signatures=false: disable verification of Release file signatures
|
-ignore-signatures=false: disable verification of Release file signatures
|
||||||
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Options:
|
|||||||
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
||||||
-filter="": filter packages in mirror
|
-filter="": filter packages in mirror
|
||||||
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
||||||
|
-force-architectures=false: (only with architecture list) skip check that requested architectures are listed in Release file
|
||||||
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
||||||
-ignore-signatures=false: disable verification of Release file signatures
|
-ignore-signatures=false: disable verification of Release file signatures
|
||||||
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ Options:
|
|||||||
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
||||||
-filter="": filter packages in mirror
|
-filter="": filter packages in mirror
|
||||||
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
|
||||||
|
-force-architectures=false: (only with architecture list) skip check that requested architectures are listed in Release file
|
||||||
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
-force-components=false: (only with component list) skip check that requested components are listed in Release file
|
||||||
-ignore-signatures=false: disable verification of Release file signatures
|
-ignore-signatures=false: disable verification of Release file signatures
|
||||||
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
|
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
|
||||||
ERROR: unable to fetch mirror: architecture source not available in repo [mirror16]: http://mirror.yandex.ru/debian/ wheezy
|
ERROR: unable to fetch mirror: architecture source not available in repo [mirror16]: http://mirror.yandex.ru/debian/ wheezy, use -force-architectures to override
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
|
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
|
||||||
ERROR: unable to fetch mirror: architecture nano68 not available in repo [mirror5]: http://mirror.yandex.ru/debian/ wheezy
|
ERROR: unable to fetch mirror: architecture nano68 not available in repo [mirror5]: http://mirror.yandex.ru/debian/ wheezy, use -force-architectures to override
|
||||||
|
|||||||
Reference in New Issue
Block a user