summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorYves Fischer <yves.fischer@cern.ch>2016-01-07 09:23:29 +0100
committerYves Fischer <yves.fischer@cern.ch>2016-01-07 09:23:29 +0100
commit3b7cbbd6a5652b055aa680a1fc4dc1369079c78d (patch)
treef02d2a43d1288626a5357ca8fe0a4ed0b712ba52 /packages
parent3a0b021979e914859ce26be71882689a91f15d95 (diff)
downloaddebian-packages-3b7cbbd6a5652b055aa680a1fc4dc1369079c78d.tar.gz
debian-packages-3b7cbbd6a5652b055aa680a1fc4dc1369079c78d.zip
idea: strip top directory from tar
Diffstat (limited to 'packages')
-rw-r--r--packages/idea-iu/build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/idea-iu/build.gradle b/packages/idea-iu/build.gradle
index 9897299..a6933eb 100644
--- a/packages/idea-iu/build.gradle
+++ b/packages/idea-iu/build.gradle
@@ -10,6 +10,9 @@ task download(type: DownloadTask) {
task untar(type: Copy) {
from tarTree(download.destFile)
into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ }
}
untar.dependsOn(download)