Skip to content

Commit

Permalink
data publish ftw
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Jan 7, 2014
1 parent d5ac56a commit fd4222b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions data_pack.go
Expand Up @@ -392,8 +392,13 @@ func (p *Pack) Publish(force bool) error {
}

// ok seems good to go.
pOut("data pack: publishing %s (%.7s)...\n", h.Dataset(), mfh)
return ri.Put(mfh)
err = ri.Put(mfh)
if err != nil {
return err
}

pOut("data pack: published %s (%.7s).\n", h.Dataset(), mfh)
return nil
}

const PublishedVersionDiffersMsg = `Version %s (%.7s) already published, but contents differ.
Expand Down
3 changes: 1 addition & 2 deletions data_publish.go
@@ -1,7 +1,6 @@
package data

import (
"fmt"
"github.com/jbenet/commander"
)

Expand Down Expand Up @@ -36,5 +35,5 @@ func publishCmd(c *commander.Command, args []string) error {
}

pOut("\n==> Step 3/3: Publishing the package to the index.\n")
return fmt.Errorf("publishing not implemented yet")
return packPublishCmd(c, []string{})
}

0 comments on commit fd4222b

Please sign in to comment.