https://bugzilla.novell.com/show_bug.cgi?id=430586 User dl9pf@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=430586#c5 --- Comment #5 from Jan-Simon Möller <dl9pf@gmx.de> 2008-09-29 20:32:31 MDT --- Some more notes: ################ #1 : #### sorting 1 packages - obs-imaging (kiwi) start build Use of uninitialized value in substitution (s///) at BSFileDB.pm line 86. scheduled: 1 #2 : #### ==> /srv/obs/log/rep_server.log <== POST /putjob?job=imaging::image::obs-imaging-8d2731b6e7128e3694ffb623f20177a6&arch=i586&jobid=5b54b5ce156a4bd4c2913eb4159676be&code=succeeded 192.168.10.2: illegal file in cpio archive: limbo-auto-config.i686-0.0.1 Quick'n'dirty hacks: #################### #1 : kiwi output can end in different suffixes, in my case its no suffix, but "-0.0.1" (the version string from config.kiwi) ############################################################################################################################ linux-obs:/usr/lib/obs/server # svn diff bs_repserver Index: bs_repserver =================================================================== --- bs_repserver (Revision 5207) +++ bs_repserver (Arbeitskopie) @@ -720,7 +720,7 @@ # right job, fetch everything! my $dir = "$jobsdir/$arch/$job:dir"; mkdir_p($dir); - my $uploaded = BSServer::read_cpio($dir, 'accept' => '^(meta|.*\.rpm|.*\.deb|.*\.iso|logfile)$'); + my $uploaded = BSServer::read_cpio($dir, 'accept' => '^(meta|.*\.rpm|.*\.deb|.*\.iso|.*0.1|logfile)$'); die("upload error\n") unless $uploaded; if ($BSConfig::sign) { my @signargs; @@ -753,7 +753,7 @@ my $success = 0; for my $file (@$uploaded) { - next unless $file->{'name'} =~ /\.(?:rpm|deb|iso)$/; + next unless $file->{'name'} =~ /\.(?:rpm|deb|iso|0.1)$/; $success = 1; last; } #2 : again: file can end in several suffixes or none ! special handling needed # need to filter out <file>.md5 linux-obs:/usr/lib/obs/server # svn diff bs_worker Index: bs_worker =================================================================== --- bs_worker (Revision 5207) +++ bs_worker (Arbeitskopie) @@ -683,6 +683,7 @@ push @args, '--prepare', "$srcdir/"; push @args, '--logfile', "$buildroot/.build.log"; push @args, '--root', "$buildroot/kiwi-root"; + print "@args \n"; if (qsystem(@args)) { print "build failed\n"; return 1; @@ -1085,13 +1088,27 @@ push @d, 'SRPMS'; @d = ('DEBS') if $buildinfo->{'file'} =~ /\.dsc$/; @d = ('KIWI') if $buildinfo->{'file'} =~ /\.kiwi$/; for my $d (@d) { - if (opendir(D, "$buildroot/.build.packages/$d")) { - push @send, map {"$buildroot/.build.packages/$d/$_"} grep {/\.(?:deb|rpm|iso)$/} readdir(D); - close D; + if ($d =~ /KIWI/i) { + system("find $buildroot/.build.packages/"); + if (opendir(D, "$buildroot/.build.packages/$d")) { + my @x; + @x = readdir(D); + my @y; + # version = 0.0.1 -> file ends with "-0.0.1" - UGLY HACK ! + @y = map {"$buildroot/.build.packages/$d/$_"} grep {/-0.0.1$/} @x; + push @send, @y; + close D; + } } - } + else { + if (opendir(D, "$buildroot/.build.packages/$d")) { + push @send, map {"$buildroot/.build.packages/$d/$_"} grep {/\.(?:deb|rpm|iso)$/} readdir(D); + close D; + } + } + } @send = map {{name => (split('/', $_))[-1], filename => $_}} @send; if (!@send) { print "build did not create packages\n"; $ex = 1; Result: Worker succeeds, transfer succeeds, but build fails and loops. Nothing stored. :(( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.