1 |
commit: 9d888380b877c7e310fc7799962776d17a242821 |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 20 00:12:08 2015 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 20 00:12:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=9d888380 |
7 |
|
8 |
fix for thin manifest |
9 |
|
10 |
pym/tbc/qachecks.py | 8 ++------ |
11 |
1 file changed, 2 insertions(+), 6 deletions(-) |
12 |
|
13 |
diff --git a/pym/tbc/qachecks.py b/pym/tbc/qachecks.py |
14 |
index acb080e..892642f 100644 |
15 |
--- a/pym/tbc/qachecks.py |
16 |
+++ b/pym/tbc/qachecks.py |
17 |
@@ -22,10 +22,6 @@ import portage |
18 |
def check_file_in_manifest(pkgdir, mysettings, portdb, cpv, build_use_flags_list, repo): |
19 |
myfetchlistdict = portage.FetchlistDict(pkgdir, mysettings, portdb) |
20 |
my_manifest = portage.Manifest(pkgdir, mysettings['DISTDIR'], fetchlist_dict=myfetchlistdict, manifest1_compat=False, from_scratch=False) |
21 |
- ebuild_version = portage.versions.cpv_getversion(cpv) |
22 |
- package = portage.versions.cpv_getkey(cpv).split("/")[1] |
23 |
- if my_manifest.findFile(package + "-" + ebuild_version + ".ebuild") is None: |
24 |
- return "Ebuild file not found.\n" |
25 |
tree = portdb.getRepositoryPath(repo) |
26 |
cpv_fetchmap = portdb.getFetchMap(cpv, useflags=build_use_flags_list, mytree=tree) |
27 |
mysettings.unlock() |
28 |
@@ -37,12 +33,12 @@ def check_file_in_manifest(pkgdir, mysettings, portdb, cpv, build_use_flags_list |
29 |
finally: |
30 |
mysettings.lock() |
31 |
try: |
32 |
- my_manifest.checkCpvHashes(cpv, checkDistfiles=True, onlyDistfiles=False, checkMiscfiles=True) |
33 |
+ my_manifest.checkCpvHashes(cpv, checkDistfiles=True, onlyDistfiles=True, checkMiscfiles=False) |
34 |
except: |
35 |
return "Can't fetch the file or the hash failed.\n" |
36 |
try: |
37 |
portdb.fetch_check(cpv, useflags=build_use_flags_list, mysettings=mysettings, all=False) |
38 |
- except: |
39 |
+ except: |
40 |
return "Fetch check failed.\n" |
41 |
return |