Move ParsePrefix into common code. #116

This commit is contained in:
Andrey Smirnov
2014-12-23 00:50:28 +03:00
parent 923e2e1e50
commit d586f31247
6 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package cmd
import (
"fmt"
"github.com/smira/aptly/deb"
"github.com/smira/commander"
)
@@ -19,7 +20,7 @@ func aptlyPublishDrop(cmd *commander.Command, args []string) error {
param = args[1]
}
storage, prefix := parsePrefix(param)
storage, prefix := deb.ParsePrefix(param)
err = context.CollectionFactory().PublishedRepoCollection().Remove(context, storage, prefix, distribution,
context.CollectionFactory(), context.Progress())