FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 01-13-2008, 02:47 PM
Jesse Keating
 
Default Revert to getfile urls if the task is not successful (closed).

This is needed because unless the task is closed, the log files won't
be in the packages/ tree, and the email will reference 404 urls.
---
builder/kojid | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/builder/kojid b/builder/kojid
index f4b7509..c03af74 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -2118,7 +2118,10 @@ Build Info: %(weburl)s/buildinfo?buildID=%(build_id)i
if filetype == 'rpms':
output += " %s
" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], task['build_arch'], file])
elif filetype == 'logs':
- output += " %s
" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], 'data', 'logs', task['build_arch'], file])
+ if tasks[task_state] != 'closed':
+ output += " %s/getfile?taskID=%s&name=%s
" % (weburl, task['id'], file)
+ else:
+ output += " %s
" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], 'data', 'logs', task['build_arch'], file])
elif task[filetype] == 'misc':
output += " %s/getfile?taskID=%s&name=%s
" % (weburl, task['id'], file)
output += "
"
--
1.5.3.8


--
Jesse Keating
Fedora -- All my bits are free, are yours?
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 

Thread Tools




All times are GMT. The time now is 05:58 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org