Changeset 93cd0a4
- Timestamp:
- 02/24/12 09:28:21 (16 months ago)
- Branches:
- master
- Children:
- 09c31f2
- Parents:
- d949443
- git-author:
- Aurélien Bompard <aurelien@…> (02/24/12 09:28:21)
- git-committer:
- Aurélien Bompard <aurelien@…> (02/24/12 09:28:21)
- File:
-
- 1 edited
-
rss-mirror.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rss-mirror.py
rd949443 r93cd0a4 422 422 423 423 424 def cleanup(self):424 def remove_expired(self): 425 425 """ 426 426 Remove mirrored pages which are not in the feed anymore (probably … … 434 434 if not config.getboolean("DEFAULT", "debug"): 435 435 shutil.rmtree(os.path.join(self.path, dirname)) 436 437 def cleanup(self): 436 438 self.lowercase_dirs() 437 439 if "_iui" not in os.listdir(self.path): … … 546 548 "pages until this depth. Be careful with that. " 547 549 "Default: %default)") 550 parser.add_option("-k", "--keep", action="store_true", 551 help="Keep the previously downloaded pages even if " 552 "they were removed from the feed") 548 553 parser.add_option("-d", "--debug", dest="debug", action="store_true", 549 554 help="Debug mode") … … 632 637 633 638 repo.make_index(downloader) 639 if not options.keep: 640 repo.remove_expired() 634 641 repo.cleanup() 635 642
Note: See TracChangeset
for help on using the changeset viewer.
