summaryrefslogtreecommitdiff
path: root/doPublish.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPublish.go')
-rw-r--r--doPublish.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/doPublish.go b/doPublish.go
index 3b57214..0c13f55 100644
--- a/doPublish.go
+++ b/doPublish.go
@@ -65,8 +65,10 @@ func doPublish() error {
if err := doBuildDeb(); err != nil {
me.sh.BadExit("debian packages failed", err)
}
- if _, err := shell.RunRealtimeError([]string{"do-aptly"}); err != nil {
- me.sh.BadExit("aptly failed", nil)
+ if totalBuilt > 0 {
+ if _, err := shell.RunRealtimeError([]string{"do-aptly"}); err != nil {
+ me.sh.BadExit("aptly failed", nil)
+ }
}
if _, err := shell.RunRealtimeError([]string{"forge", "mode", "normal"}); err != nil {