Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit a8ba7ec0bf63fc49780cc87ff9fc4cf1513cd4a8

Avoid duplicate mountpoint
app/app.py
(3 / 2)
  
7272
7373def mount_event(e):
7474 if e.get('event')=='mount':
75 mounts.append({'name':e['name'],
76 'mountpoint':e['mountpoint']})
75 if not [True for m in mounts if m['mountpoint']==e['mountpoint']]:
76 mounts.append({'name':e['name'],
77 'mountpoint':e['mountpoint']})
7778 elif e.get('event')=='unmount':
7879 mounts[:] = [m for m in mounts if m.get('mountpoint') != e.get('mountpoint')]
7980