diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/pacman/pactest.py | 6 | ||||
-rw-r--r-- | test/pacman/pmdb.py | 2 | ||||
-rw-r--r-- | test/pacman/pmenv.py | 2 | ||||
-rw-r--r-- | test/pacman/pmfile.py | 2 | ||||
-rw-r--r-- | test/pacman/pmpkg.py | 10 | ||||
-rw-r--r-- | test/pacman/pmrule.py | 2 | ||||
-rw-r--r-- | test/pacman/pmtest.py | 4 | ||||
-rw-r--r-- | test/pacman/tests/epoch005.py | 2 | ||||
-rw-r--r-- | test/pacman/tests/sync135.py | 2 | ||||
-rw-r--r-- | test/pacman/util.py | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py index 62034dc7..bb198eb4 100755 --- a/test/pacman/pactest.py +++ b/test/pacman/pactest.py @@ -3,7 +3,7 @@ # pactest : run automated testing on the pacman binary # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -83,9 +83,9 @@ def create_parser(): help = "do not use --noconfirm for pacman calls") return parser - + if __name__ == "__main__": - # instantiate env and parser objects + # instantiate env and parser objects root_path = tempfile.mkdtemp() env = pmenv.pmenv(root=root_path) opt_parser = create_parser() diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index 5195ec64..b94c6cf6 100644 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/test/pacman/pmenv.py b/test/pacman/pmenv.py index e9950fe8..04aecd9a 100644 --- a/test/pacman/pmenv.py +++ b/test/pacman/pmenv.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/test/pacman/pmfile.py b/test/pacman/pmfile.py index 638b451e..cdcc7715 100644 --- a/test/pacman/pmfile.py +++ b/test/pacman/pmfile.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index 7aa77f6a..00f345c0 100644 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -27,7 +27,7 @@ import util class pmpkg(object): """Package object. - + Object holding data from an Arch Linux package. """ @@ -79,14 +79,14 @@ class pmpkg(object): def fullname(self): """Long name of a package. - + Returns a string formatted as follows: "pkgname-pkgver". """ return "%s-%s" % (self.name, self.version) def filename(self): """File name of a package, including its extension. - + Returns a string formatted as follows: "pkgname-pkgver.PKG_EXT_PKG". """ return "%s%s" % (self.fullname(), util.PM_EXT_PKG) @@ -104,7 +104,7 @@ class pmpkg(object): def makepkg(self, path): """Creates an Arch Linux package archive. - + A package archive is generated in the location 'path', based on the data from the object. """ diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index d64f5194..70c8838e 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index 0572d6f0..3acf5d81 100644 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -94,7 +94,7 @@ class pmtest(object): self.rules = [] self.files = [] self.expectfailure = False - + if os.path.isfile(self.name): # all tests expect this to be available from pmpkg import pmpkg diff --git a/test/pacman/tests/epoch005.py b/test/pacman/tests/epoch005.py index 4af8edfd..62151703 100644 --- a/test/pacman/tests/epoch005.py +++ b/test/pacman/tests/epoch005.py @@ -9,7 +9,7 @@ versions = ( ) pkgvers = [(n, versions[n]) for n in range(len(versions))] -for k, v in pkgvers: +for k, v in pkgvers: sp = pmpkg("pkg_%d" % k, v) self.addpkg2db("sync", sp) diff --git a/test/pacman/tests/sync135.py b/test/pacman/tests/sync135.py index 18c412aa..6e6ccfb1 100644 --- a/test/pacman/tests/sync135.py +++ b/test/pacman/tests/sync135.py @@ -27,5 +27,5 @@ self.args = "-Su" self.addrule("PACMAN_RETCODE=0") for p in lp1, lp2: self.addrule("!PKG_EXIST=%s" % p.name) -for p in sp1, sp2, sp3, sp4: +for p in sp1, sp2, sp3, sp4: self.addrule("PKG_EXIST=%s" % p.name) diff --git a/test/pacman/util.py b/test/pacman/util.py index 60dea9e8..cde44c6e 100644 --- a/test/pacman/util.py +++ b/test/pacman/util.py @@ -1,7 +1,7 @@ #! /usr/bin/python # # Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or |