Browse Source

Try to fix adopt-info.

Thanks to xet7.
Lauri Ojansivu 5 years ago
parent
commit
9bc8040634
1 changed files with 6 additions and 5 deletions
  1. 6 5
      snapcraft.yaml

+ 6 - 5
snapcraft.yaml

@@ -63,6 +63,12 @@ apps:
         command: mongodb-restore
         command: mongodb-restore
         plugs: [network, network-bind]
         plugs: [network, network-bind]
 
 
+part:
+    mypart:
+      override-build: |
+        snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)"
+        snapcraftctl build
+
 parts:
 parts:
     mongodb:
     mongodb:
         source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.22.tgz
         source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.22.tgz
@@ -226,11 +232,6 @@ parts:
         prime:
         prime:
             - -lib/node_modules/node-pre-gyp/node_modules/tar/lib/.unpack.js.swp
             - -lib/node_modules/node-pre-gyp/node_modules/tar/lib/.unpack.js.swp
 
 
-    mypart:
-      override-build: |
-        snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)"
-        snapcraftctl build
-
     helpers:
     helpers:
         source: snap-src
         source: snap-src
         plugin: dump
         plugin: dump