Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 26491 Details for
Bug 37406
rewrite of version handling code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test script
vercheck.py (text/plain), 769 bytes, created by
Marius Mauch (RETIRED)
on 2004-02-27 16:15:16 UTC
(
hide
)
Description:
test script
Filename:
MIME Type:
Creator:
Marius Mauch (RETIRED)
Created:
2004-02-27 16:15:16 UTC
Size:
769 bytes
patch
obsolete
>#!/usr/bin/python > >import sys, string >sys.path.insert(0, "/usr/lib/portage/pym") >import portage >import versions > >pkglist = portage.db["/"]["porttree"].dbapi.cp_all() >versiondict = {} >for pkg in pkglist: > versiondict[pkg] = map(portage.pkgsplit, portage.db["/"]["porttree"].dbapi.cp_list(pkg)) > >badlist = [] >misslist = [] >for pkg in pkglist: > for x in versiondict[pkg]: > if not versions.ververify(string.join(x[1:], "-")): > misslist.append(x) > for y in versiondict[pkg]: > a = portage.pkgcmp(x, y) > b = versions.pkgcmp(x, y) > if (a < 0 and b >= 0) or (a == 0 and b != 0) or (a > 0 and b <= 0): > badlist.append((x, y, a, b)) > >print "Number of problems: %d" % (len(badlist)+len(misslist)) >for entry in badlist: > print entry >for entry in misslist: > print entry
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 37406
:
25267
|
25711
|
26490
| 26491 |
26883
|
31566
|
31767