Skip to content

Commit

Permalink
revert stage4 to consistent naming scheme and add exception for openvz
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Feb 4, 2013
1 parent 41368c2 commit b90e035
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
5 changes: 4 additions & 1 deletion targets/gentoo/openvz.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[collect ./source/stage3.spec]
[collect ./target/stage4.spec]
[collect ./target/stage4-common.spec]
[collect ./steps/container.spec]
[collect ./steps/capture/tar.spec]

Expand All @@ -10,6 +10,9 @@ target/name: openvz
[section target]

sys: openvz
name: $[:build]-$[:subarch]-$[stage4/target/name]-$[:version]
name/latest: $[:build]-$[stage4/target/name]-$[path/mirror/link/suffix]
name/full_latest: $[:build]-$[:subarch]-$[stage4/target/name]-$[path/mirror/link/suffix]

[section steps]

Expand Down
17 changes: 17 additions & 0 deletions targets/gentoo/target/stage4-common.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[collect ./stage.spec]
[collect ../steps/symlink.spec]

[section trigger]

ok/run: [
#!/bin/bash

install -d $[path/mirror/target/control]/version/stage4 || exit 1
echo "$[target/version]" > $[path/mirror/target/control]/version/stage4/$[stage4/target/name] || exit 1

$[[trigger/ok/symlink]]
]

[section portage]

ROOT: /
24 changes: 4 additions & 20 deletions targets/gentoo/target/stage4.spec
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
[collect ./stage.spec]
[collect ../steps/symlink.spec]
[collect ./stage4-common.spec]

[section target]

name: $[:build]-$[:subarch]-$[stage4/target/name]-$[:version]
name/latest: $[:build]-$[stage4/target/name]-$[path/mirror/link/suffix]
name/full_latest: $[:build]-$[:subarch]-$[stage4/target/name]-$[path/mirror/link/suffix]

[section trigger]

ok/run: [
#!/bin/bash

install -d $[path/mirror/target/control]/version/stage4 || exit 1
echo "$[target/version]" > $[path/mirror/target/control]/version/stage4/$[stage4/target/name] || exit 1

$[[trigger/ok/symlink]]
]

[section portage]

ROOT: /
name: $[stage4/target/name]-$[:subarch]-$[:build]-$[:version]
name/latest: $[stage4/target/name]-$[path/mirror/link/suffix]
name/full_latest: $[stage4/target/name]-$[:subarch]-$[:build]-$[path/mirror/link/suffix]

0 comments on commit b90e035

Please sign in to comment.