Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / xfercommand001.py
bloba645cf7fc4c4419b2cf38147bc3294798a070278
1 self.description = "Quick check for using XferCommand"
3 # this setting forces us to download packages
4 self.cachepkgs = False
5 #wget doesn't support file:// urls. curl does
6 self.option['XferCommand'] = ['/usr/bin/curl %u > %o']
8 numpkgs = 10
9 pkgnames = []
10 for i in xrange(numpkgs):
11 name = "pkg_%s" % i
12 pkgnames.append(name)
13 p = pmpkg(name)
14 p.files = ["usr/bin/foo-%s" % i]
15 self.addpkg2db("sync", p)
17 self.args = "-S %s" % ' '.join(pkgnames)
19 for name in pkgnames:
20 self.addrule("PKG_EXIST=%s" % name)