Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 084c871b authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

debian/generate-devel-package: Fix bug that broke cleanup

parent 135b075a
Branches
Tags
1 merge request!1simplify Debian packaging
......@@ -2,10 +2,6 @@
require 'fileutils'
stage = ARGV[0]
# extract suffix from DEB_BUILD_OPTIONS
suffix = ENV['DEB_BUILD_OPTIONS'].split(/ /).select { |e| e =~ /^devpkg=/ }.first.split(/=/)[1]
pkgs = ['kadeploy-common', 'kadeploy', 'kadeploy-client']
if stage == "clean"
if File::exist?('debian/control.devpkg')
......@@ -14,6 +10,11 @@ if stage == "clean"
exit(0)
end
# extract suffix from DEB_BUILD_OPTIONS
suffix = ENV['DEB_BUILD_OPTIONS'].split(/ /).select { |e| e =~ /^devpkg=/ }.first.split(/=/)[1]
pkgs = ['kadeploy-common', 'kadeploy', 'kadeploy-client']
if stage != 'build'
puts "Invalid stage."
exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment