mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
committed by
André Roth
parent
14c29ff912
commit
3057aed571
@@ -44,7 +44,7 @@ func aptlyPublishSourceAdd(cmd *commander.Command, args []string) error {
|
||||
name := names[i]
|
||||
_, exists := sources[component]
|
||||
if exists {
|
||||
return fmt.Errorf("unable to add: Component %q has already been added", component)
|
||||
return fmt.Errorf("unable to add: component %q has already been added", component)
|
||||
}
|
||||
context.Progress().Printf("Adding component %q with source %q [%s]...\n", component, name, published.SourceKind)
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ func aptlyPublishSourceList(cmd *commander.Command, args []string) error {
|
||||
}
|
||||
|
||||
if published.Revision == nil {
|
||||
return fmt.Errorf("unable to list: No source changes exist")
|
||||
return fmt.Errorf("unable to list: no source changes exist")
|
||||
}
|
||||
|
||||
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
|
||||
|
||||
@@ -19,7 +19,7 @@ func aptlyPublishSourceRemove(cmd *commander.Command, args []string) error {
|
||||
components := strings.Split(context.Flags().Lookup("component").Value.String(), ",")
|
||||
|
||||
if len(components) == 0 {
|
||||
return fmt.Errorf("unable to remove: Missing components, specify at least one component")
|
||||
return fmt.Errorf("unable to remove: missing components, specify at least one component")
|
||||
}
|
||||
|
||||
prefix := context.Flags().Lookup("prefix").Value.String()
|
||||
|
||||
@@ -44,7 +44,7 @@ func aptlyPublishSourceUpdate(cmd *commander.Command, args []string) error {
|
||||
name := names[i]
|
||||
_, exists := sources[component]
|
||||
if !exists {
|
||||
return fmt.Errorf("unable to update: Component %q does not exist", component)
|
||||
return fmt.Errorf("unable to update: component %q does not exist", component)
|
||||
}
|
||||
context.Progress().Printf("Updating component %q with source %q [%s]...\n", component, name, published.SourceKind)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user