Resolve PR #976 review comments

Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
Joshua Colson authored and Lorenzo Bolla committed 2021-09-24 10:29:33 +02:00
1 parent 899ed92ebc
commit 0bc66032d2
5 files changed
+68 -47

No files matched your search

+1 -2
View File
@@ -97,8 +97,6 @@ func aptlyMirrorShowJson(cmd *commander.Command, args []string) error {
name := args[0]
withPackages := context.Flags().Lookup("with-packages").Value.Get().(bool)
repo, err := context.CollectionFactory().RemoteRepoCollection().ByName(name)
if err != nil {
return fmt.Errorf("unable to show: %s", err)
@@ -110,6 +108,7 @@ func aptlyMirrorShowJson(cmd *commander.Command, args []string) error {
}
// include packages if requested
withPackages := context.Flags().Lookup("with-packages").Value.Get().(bool)
if withPackages {
if repo.RefList() != nil {
var list *deb.PackageList