From: <luc...@us...> - 2003-08-14 23:52:17
|
Update of /cvsroot/zxsync/zXSync/zxsync In directory sc8-pr-cvs1:/tmp/cvs-serv29740 Added Files: zapped.py Log Message: - added possibility to remove backups (useful if a device was re-initialized and should be re-synced completely) --- NEW FILE: zapped.py --- #!/usr/bin/env python # # zXSync helper in case a device was zapped. # # Copyright (C) 2003 Andreas Junghans <aj...@lu...> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: zapped.py,v 1.1 2003/08/14 19:59:11 lucidcake Exp $ # import sys import backup # command line interface if __name__ == "__main__": cmdError = 0 try: plugin = sys.argv[1] device = sys.argv[2] except: print "Usage: zapped <plugin> <device>" cmdError = 1 if not cmdError: backup.removeBackups(plugin, device) |