mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
bug fixes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
c38b34a000
commit
dc6afac7b7
2 changed files with 2 additions and 5 deletions
1
setup.py
1
setup.py
|
@ -649,7 +649,6 @@ class Setup():
|
|||
ponyshare = conf['share-dir']
|
||||
if not ponyshare.endswith('/'):
|
||||
ponyshare += '/'
|
||||
ponyshare += 'ponysay/'
|
||||
for dir in sharedirs:
|
||||
if conf[dir[0]] is not None:
|
||||
self.cp(True, dir[0], [ponyshare + dir[0]], Setup.validateFreedom if self.free else None)
|
||||
|
|
|
@ -509,10 +509,8 @@ class Ponysay():
|
|||
ponies = {}
|
||||
for ponydir in ponydirs:
|
||||
for pony in Metadata.restrictedPonies(ponydir, logic):
|
||||
if pony in oldponies: # XXX and (pony not in passed)
|
||||
ponyfile = ponydir + pony + '.pony'
|
||||
if oldponies[pony] == ponyfile:
|
||||
ponies[pony] = ponyfile
|
||||
if (pony in ponies) and not (pony in ponies): # XXX and (pony not in passed)
|
||||
ponies[pony] = ponydir + pony + '.pony'
|
||||
if len(ponies) > 0:
|
||||
oldponies = ponies
|
||||
|
||||
|
|
Loading…
Reference in a new issue