summaryrefslogtreecommitdiffstats
path: root/test/pacman/util.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-22 22:05:53 +0200
committerDan McGee <dan@archlinux.org>2011-06-24 08:36:48 +0200
commitf15cce1d414cb497ee804d50c25c6d3d717240bd (patch)
treeac2db9dc2eb519dd592ad0e898d54a944d2e253e /test/pacman/util.py
parent3ace8ceb2343621ada4a72fc60e8e03a570fd389 (diff)
downloadpacman-f15cce1d414cb497ee804d50c25c6d3d717240bd.tar.gz
pacman-f15cce1d414cb497ee804d50c25c6d3d717240bd.tar.xz
pactest: move filelist/backup generation into package object
These are definite methods that operate on a package, so move them there which cleans up util a bit more. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/util.py')
-rw-r--r--test/pacman/util.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py
index f971afd1..5e8d3dbc 100644
--- a/test/pacman/util.py
+++ b/test/pacman/util.py
@@ -47,16 +47,6 @@ def vprint(msg):
# Methods to generate files
#
-def getfilename(name):
- filename = name
- if filename[-1] == "*":
- filename = filename.rstrip("*")
- if filename.find(" -> ") != -1:
- filename, extra = filename.split(" -> ")
- elif filename.find("|") != -1:
- filename, extra = filename.split("|")
- return filename
-
def mkfile(name, data = ""):
isdir = 0
islink = 0