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 10-20-2010, 08:04 PM
Ville Skyttä
 
Default Drop no longer used requiresTextFromHdr() and uniqReqs().

This is an incompatible API change, but I'm not aware of anything that
would use these functions.
---
py/mock/util.py | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/py/mock/util.py b/py/mock/util.py
index 6e63b1d..d617f61 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -125,27 +125,6 @@ def yieldSrpmHeaders(srpms, plainRpmOk=0):
yield hdr

decorate(traceLog())
-def requiresTextFromHdr(hdr):
- """take a header and hand back a unique'd list of the requires as
- strings"""
-
- reqlist = []
- names = hdr[rpm.RPMTAG_REQUIRENAME]
- flags = hdr[rpm.RPMTAG_REQUIREFLAGS]
- ver = hdr[rpm.RPMTAG_REQUIREVERSION]
- if names is not None:
- tmplst = zip(names, flags, ver)
-
- for (n, f, v) in tmplst:
- if n.startswith('rpmlib'):
- continue
-
- req = rpmUtils.miscutils.formatRequire(n, v, f)
- reqlist.append(req)
-
- return rpmUtils.miscutils.unique(reqlist)
-
-decorate(traceLog())
def getNEVRA(hdr):
name = hdr[rpm.RPMTAG_NAME]
ver = hdr[rpm.RPMTAG_VERSION]
@@ -180,13 +159,6 @@ def getAddtlReqs(hdr, conf):

return rpmUtils.miscutils.unique(reqlist)

-decorate(traceLog())
-def uniqReqs(*args):
- master = []
- for l in args:
- master.extend(l)
- return rpmUtils.miscutils.unique(master)
-
# not traced...
def chomp(line):
if line.endswith("
"):
--
1.7.2.3

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 04:03 PM.

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