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-06-2009, 08:35 PM
Bill Nottingham
 
Default Wire in support for composing 'full' trees with all subpackages.

Since full trees and build-solved trees can affect each other, if we're
doing both we need to loop between them until there are no new packages
added.
---
src/bin/pungi.py | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/bin/pungi.py b/src/bin/pungi.py
index 9224713..eab54a6 100755
--- a/src/bin/pungi.py
+++ b/src/bin/pungi.py
@@ -86,10 +86,24 @@ def main():
mypungi._inityum() # initialize the yum object for things that need it
if opts.do_all or opts.do_gather:
mypungi.getPackageObjects()
- if not opts.nosource or opts.selfhosting:
+ if not opts.nosource or opts.selfhosting or opts.fulltree:
+ mypungi.createSourceHashes()
mypungi.getSRPMList()
if opts.selfhosting:
mypungi.resolvePackageBuildDeps()
+ if opts.fulltree:
+ mypungi.completePackageSet()
+ if opts.selfhosting and opts.fulltree:
+ # OUCH.
+ while 1:
+ plen = len(mypungi.srpmpolist)
+ mypungi.resolvePackageBuildDeps()
+ if plen == len(mypungi.srpmpolist):
+ break
+ plen = len(mypungi.srpmpolist)
+ mypungi.completePackageSet()
+ if plen == len(mypungi.srpmpolist):
+ break
mypungi.downloadPackages()
mypungi.makeCompsFile()
if not opts.nodebuginfo:
@@ -158,6 +172,8 @@ if __name__ == '__main__':
help='the url for your bug system (defaults to http://bugzilla.redhat.com)')
parser.add_option("--selfhosting", action="store_true", dest="selfhosting",
help='build a self-hosting tree by following build dependencies (optional)')
+ parser.add_option("--fulltree", action="store_true", dest="fulltree",
+ help='build a tree that includes all packages built from corresponding source rpms (optional)')
parser.add_option("--nosource", action="store_true", dest="nosource",
help='disable gathering of source packages (optional)')
parser.add_option("--nodebuginfo", action="store_true", dest="nodebuginfo",
--
1.6.0.6

--
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 11:38 AM.

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