From 3c531250ab69f76afb2c6c79527e58577934bb24 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 10 Jul 2021 00:10:09 +0200 Subject: [PATCH] main: use git-deborig (#37) --- main.js | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/main.js b/main.js index 3589243..9eca515 100644 --- a/main.js +++ b/main.js @@ -103,22 +103,6 @@ async function main() { ]) core.endGroup() - if (revision) { - core.startGroup("Create tarball") - await exec.exec("docker", [ - "exec", - container, - "tar", - "--exclude-vcs", - "--exclude", "./debian", - "--transform", `s/^\./${pkg}-${version}/S`, - "-cvzf", `${buildDirectory}/${pkg}_${version}.orig.tar.gz`, - "-C", sourceDirectory, - "./" - ]) - core.endGroup() - } - core.startGroup("Update packages list") await exec.exec("docker", [ "exec", @@ -145,6 +129,17 @@ async function main() { core.endGroup() } + if (revision) { + core.startGroup("Create tarball") + await exec.exec("docker", [ + "exec", + container, + "git-deborig", + "HEAD" + ]) + core.endGroup() + } + core.startGroup("Build packages") await exec.exec("docker", [ "exec",