Permalink
Browse files

track stage4 builds in the control directory

  • Loading branch information...
1 parent 3a684ed commit b73125de57edc0aa687224aa3e2280dd71f4f764 @hollow hollow committed Mar 11, 2012
Showing with 13 additions and 3 deletions.
  1. +2 −1 targets/gentoo/source/stage4.spec
  2. +11 −2 targets/gentoo/target/stage4.spec
@@ -6,11 +6,12 @@
[section source]
+: $[stage4/source/name]
name: $[]-$[:subarch]-$[:build]-$[:version]
# When building from a stage4, we simply use the stage4 with matching
# build, subarch and version:
build: $[target/build]
subarch: $[target/subarch]
-version: $[target/version]
+version: << $[path/mirror/control]/version/stage4/$[stage4/source/name]
@@ -7,12 +7,21 @@
[section target]
-name: $[stage4/name]-$[:subarch]-$[:build]-$[:version]
-name/current: $[stage4/name]-current
+name: $[stage4/target/name]-$[:subarch]-$[:build]-$[:version]
+name/current: $[stage4/target/name]-current
[section trigger]
ok/run: [
+#!/bin/bash
+
+# Since we've completed a successful stage4 build, we will update our
+# .control/version/stage4 directory. This file records the version of the last
+# successful stage4 build.
+
+install -d $[path/mirror/control]/version/stage4 || exit 1
+echo "$[target/version]" > $[path/mirror/control]/version/stage4/$[stage4/target/name] || exit 1
+
$[[trigger/ok/symlink]]
]

0 comments on commit b73125d

Please sign in to comment.