1 |
commit: 0c9693ac431f53b6606a1fa13ece08ee5fca4dd9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 17:49:34 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 17:49:34 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=0c9693ac |
7 |
|
8 |
Move remaining EbuildGenCLI code to PMSTestSuite.ebuildgen. |
9 |
|
10 |
--- |
11 |
ebuild-generator => PMSTestSuite/ebuildgen.py | 7 ------- |
12 |
ebuild-generator | 15 +-------------- |
13 |
2 files changed, 1 insertions(+), 21 deletions(-) |
14 |
|
15 |
diff --git a/ebuild-generator b/PMSTestSuite/ebuildgen.py |
16 |
old mode 100755 |
17 |
new mode 100644 |
18 |
similarity index 79% |
19 |
copy from ebuild-generator |
20 |
copy to PMSTestSuite/ebuildgen.py |
21 |
index caac6ba..4a16625 |
22 |
--- a/ebuild-generator |
23 |
+++ b/PMSTestSuite/ebuildgen.py |
24 |
@@ -1,10 +1,7 @@ |
25 |
-#!/usr/bin/python |
26 |
# vim:fileencoding=utf-8 |
27 |
# (c) 2011 Michał Górny <mgorny@g.o> |
28 |
# Released under the terms of the 2-clause BSD license. |
29 |
|
30 |
-import sys |
31 |
- |
32 |
from PMSTestSuite.cli import PMSTestSuiteCLI |
33 |
|
34 |
class EbuildGenCLI(PMSTestSuiteCLI): |
35 |
@@ -19,7 +16,3 @@ class EbuildGenCLI(PMSTestSuiteCLI): |
36 |
self.repository.remanifest(files, self.pm) |
37 |
|
38 |
return 0 |
39 |
- |
40 |
-if __name__ == '__main__': |
41 |
- cli = EbuildGenCLI() |
42 |
- sys.exit(cli.main(sys.argv)) |
43 |
|
44 |
diff --git a/ebuild-generator b/ebuild-generator |
45 |
index caac6ba..f11ac16 100755 |
46 |
--- a/ebuild-generator |
47 |
+++ b/ebuild-generator |
48 |
@@ -5,20 +5,7 @@ |
49 |
|
50 |
import sys |
51 |
|
52 |
-from PMSTestSuite.cli import PMSTestSuiteCLI |
53 |
- |
54 |
-class EbuildGenCLI(PMSTestSuiteCLI): |
55 |
- def main(self, argv): |
56 |
- self._start(*argv) |
57 |
- |
58 |
- files = {} |
59 |
- for t in self.test_library: |
60 |
- files.update(t.get_output_files()) |
61 |
- |
62 |
- self.repository.write_files(files) |
63 |
- self.repository.remanifest(files, self.pm) |
64 |
- |
65 |
- return 0 |
66 |
+from PMSTestSuite.ebuildgen import EbuildGenCLI |
67 |
|
68 |
if __name__ == '__main__': |
69 |
cli = EbuildGenCLI() |