| if verifyfile(kbinloc,kinfo): |
if verifyfile(kbinloc,kinfo): |
| # the binary exists, so let's cp it to bin... |
# the binary exists, so let's cp it to bin... |
| copy(kbinloc,mybindir+"/boot/"+kinfo["binname"]+"-"+myversion) |
copy(kbinloc,mybindir+"/boot/"+kinfo["binname"]+"-"+myversion) |
| |
copy("%s/System.map" % kinfo["workdir"],mybindir+"/boot/System.map-"+myversion) |
| else: |
else: |
| # the binary is not there, inform user and bail out with error |
# the binary is not there, inform user and bail out with error |
| raise BuildError("%s is not present, assuming build failure and exiting. See log for details." % kbinloc) |
raise BuildError("%s is not present, assuming build failure and exiting. See log for details." % kbinloc) |