Permalink
Browse files

Use lftp instead of wget in order to delete removed addons.

  • Loading branch information...
1 parent f419412 commit 7d59e4a57d16d79251caefefc7e0fc7946426d2d @ochameau committed Oct 15, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 scripts/README.md
  2. +2 −1 scripts/fetch-ftp.sh
  3. +2 −0 unpack.py
View
@@ -23,7 +23,7 @@ $ /addons/scripts/fetch-ftp.sh
2/ Unzip jetpack xpi files
```
-$ /addons/repacker/scripts/unzip.sh /addons/ftp/ftp.mozilla.org/pub/mozilla.org/addons/ /addons/src
+$ /addons/repacker/scripts/unzip.sh /addons/ftp/ /addons/src
# This script will unzip all jetpack xpi files to /addons/src/jetpack folder
# (On 2012/07, it unpacked 770MB of data)
```
View
@@ -1,2 +1,3 @@
#!/bin/bash
-wget -m ftp://ftp.mozilla.org/pub/mozilla.org/addons/
+mkdir -p /addons/ftp
+lftp ftp://ftp.mozilla.org/ -e "mirror /pub/mozilla.org/addons /addons/ftp -c -e --parallel=10 -v --log /addons/ftp-log ; quit"
View
@@ -339,6 +339,8 @@ def processAddon(path, args):
repacked_path = repack(path, zip, version, manifest, args.target, args.sdk, args.force)
if repacked_path:
print "Successfully repacked", path, "to", repacked_path
+ else:
+ raise Exception("Unable to repack because of errors during cfx xpi")
# Eventually do a diff between original xpi and repacked one
if args.diff or args.diffstat:
print_diff(path, repacked_path, args.diffstat)

0 comments on commit 7d59e4a

Please sign in to comment.