JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 05:29:23 +0000 (13:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 05:29:23 +0000 (13:29 +0800)
JSDOC/Packer.js

index 0a50222..1ab0ce1 100644 (file)
@@ -107,6 +107,9 @@ Packer = function(cfg)
     this.packAll();
     
     if (link) {
+        if (File.exists(link)) {
+            File.remove(link);
+        }
         var f = Gio.file_new_for_path(this.target);
         f.create_symbolic_link(link);
     }