use TMPDIR
This commit is contained in:
parent
06b4370945
commit
2817813937
@ -103,7 +103,7 @@ sub explain_request($$)
|
|||||||
my $target = $action->{target};
|
my $target = $action->{target};
|
||||||
|
|
||||||
if ($target->{project} eq $tproject) {
|
if ($target->{project} eq $tproject) {
|
||||||
print "ignore $request->{id}\n";
|
#print "ignore $request->{id}\n";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,10 +223,11 @@ def _checker_one_request(self, rq, cmd, opts):
|
|||||||
tprj, tpkg)
|
tprj, tpkg)
|
||||||
dpkg = self._checker_check_devel_package(opts, tprj, tpkg)
|
dpkg = self._checker_check_devel_package(opts, tprj, tpkg)
|
||||||
self._devel_projects['X11:QtDesktop/'] = 'rabbitmq'
|
self._devel_projects['X11:QtDesktop/'] = 'rabbitmq'
|
||||||
self._devel_projects['GNOME:Cinnamon/'] = 'ruby19'
|
self._devel_projects['devel:languages:erlang/'] = 'ruby19'
|
||||||
self._devel_projects['devel:languages:nodejs/'] = 'nodejs'
|
self._devel_projects['devel:languages:nodejs/'] = 'nodejs'
|
||||||
self._devel_projects['Publishing:TeXLive/'] = 'texlive'
|
self._devel_projects['X11:Enlightenment:Factory/'] = 'x2go'
|
||||||
self._devel_projects['isv:ownCloud:owncloud-factory'] = 'owncloud'
|
self._devel_projects['isv:ownCloud:owncloud-factory'] = 'owncloud'
|
||||||
|
self._devel_projects['X11:Wayland/'] = 'wayland'
|
||||||
if dpkg:
|
if dpkg:
|
||||||
[dprj, dpkg] = dpkg.split('/')
|
[dprj, dpkg] = dpkg.split('/')
|
||||||
else:
|
else:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#! /usr/bin/perl
|
#! /usr/bin/perl
|
||||||
|
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
use File::Temp qw/ :mktemp /;
|
use File::Temp qw/ tempdir /;
|
||||||
use XML::Simple;
|
use XML::Simple;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use Cwd;
|
use Cwd;
|
||||||
@ -18,6 +18,12 @@ if (-f "$dir/_service") {
|
|||||||
print "Services are only allowed if they are mode='localonly'. Please change the mode of $name and use osc service localrun\n";
|
print "Services are only allowed if they are mode='localonly'. Please change the mode of $name and use osc service localrun\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
# now remove it to have full service from source validator
|
||||||
|
unlink("$dir/_service");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-f "$dir/_constraints") {
|
||||||
|
unlink("$dir/_constraints");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! -f "$dir/$bname.changes") {
|
if (! -f "$dir/$bname.changes") {
|
||||||
@ -138,8 +144,8 @@ if (-d "_old") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $odir = getcwd;
|
my $odir = getcwd;
|
||||||
my $tmpdir = mkdtemp("/tmp/obs-XXXXXXX");
|
my $tmpdir = tempdir ( "obs-XXXXXXX", TMPDIR => 1 );
|
||||||
chdir($dir);
|
chdir($dir) || die 'tempdir failed';
|
||||||
if (system("/usr/lib/obs/service/download_files","--enforceupstream", "yes", "--enforcelocal", "yes", "--outdir", $tmpdir)) {
|
if (system("/usr/lib/obs/service/download_files","--enforceupstream", "yes", "--enforcelocal", "yes", "--outdir", $tmpdir)) {
|
||||||
print "Source URLs are not valid. Try \"osc service localrun download_files\"\n";
|
print "Source URLs are not valid. Try \"osc service localrun download_files\"\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user