You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2015/11/25 08:31:23 UTC
bigtop git commit: BIGTOP-2142. Source cleanup: bigtop-repos
Repository: bigtop
Updated Branches:
refs/heads/master bc6b065cb -> 6451d505b
BIGTOP-2142. Source cleanup: bigtop-repos
Signed-off-by: Konstantin Boudnik <co...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/6451d505
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/6451d505
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/6451d505
Branch: refs/heads/master
Commit: 6451d505b295646cc72c60419f1a31f063274391
Parents: bc6b065
Author: Sergey Soldatov <se...@gmail.com>
Authored: Tue Nov 24 23:16:48 2015 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Tue Nov 24 23:29:25 2015 -0800
----------------------------------------------------------------------
bigtop-repos/apt/distributions | 8 --------
packages.gradle | 19 +++++++++++++++----
2 files changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/6451d505/bigtop-repos/apt/distributions
----------------------------------------------------------------------
diff --git a/bigtop-repos/apt/distributions b/bigtop-repos/apt/distributions
deleted file mode 100644
index 470bb7e..0000000
--- a/bigtop-repos/apt/distributions
+++ /dev/null
@@ -1,8 +0,0 @@
-Origin: Bigtop
-Label: Bigtop
-Suite: stable
-Codename: bigtop
-Version: 0.1
-Architectures: i386 amd64 source
-Components: contrib
-Description: Bigtop
http://git-wip-us.apache.org/repos/asf/bigtop/blob/6451d505/packages.gradle
----------------------------------------------------------------------
diff --git a/packages.gradle b/packages.gradle
index 48329d9..71cd148 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -104,6 +104,19 @@ def nativePackaging = {
[false, "deb", "rpm"][result.getExitValue()]
}.call()
+def generateDistributionsFile = { file ->
+ def writer = new File(file);
+ writer.text ="""Origin: Bigtop
+Label: Bigtop
+Suite: stable
+Codename: bigtop
+Version: ${config.bigtop.version}
+Architectures: i386 amd64 source
+Components: contrib
+Description: Bigtop
+""";
+}
+
task "packages-help" (description: "All package build related tasks information", group: PACKAGES_GROUP) << {
config.bigtop.components.each { label, comp ->
println (comp.name + "\n\t[" + tasks.findAll { alltask -> alltask.name.startsWith(comp.name)}*.name.join(", ") + "]")
@@ -653,10 +666,8 @@ task "apt" (
delete ( "$OUTPUT_DIR/apt")
mkdir ("$OUTPUT_DIR/apt/conf")
- copy {
- from "$REPO_DIR/apt/distributions"
- into "$OUTPUT_DIR/apt/conf"
- }
+ generateDistributionsFile("$OUTPUT_DIR/apt/conf/distributions");
+
fileTree (OUTPUT_DIR) {
include "*/*.changes"
}.each { changeFile ->