Skip to content
Snippets Groups Projects
Commit 3af539e7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Work on 3.1 packager

parent 6c4acefd
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,17 @@ else {
# Test if requirement is ok
#--------------------------
$atleastonerpm=0;
foreach my $target (keys %CHOOSEDTARGET) {
if ($target =~ /RPM/i)
{
if ($atleastonerpm && ! $ENV{"DESTI"})
{
print "Error: You asked creation of several rpms. Because all rpm have same name, you must defined an environment variable DESTI to tell package it must create subdirs for each package.\n";
exit;
}
$atleastonerpm=1;
}
foreach my $req (split(/[,\s]/,$REQUIREMENTTARGET{$target})) {
# Test
print "Test requirement for target $target: Search '$req'... ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment