Hello Assaf,
Thanks very much for your patch - I've applied it in change set 5770:a5e0a5d3c0a1.
Greg Von Kuster
On Jul 1, 2011, at 5:35 PM, Assaf Gordon wrote:
Hi,
I'm trying to use the built-in cleanup scripts (instead of my own), came across a
possible bug:
1. When running "delete_datasets.sh", the "info_only" flag is
ignored.
This is evident by running it twice with "-i" and getting different results
(the second time - no datasets are deleted).
2. When running "purge_datasets.sh" with the "info_only" flag, no
information is printed at all, making it impossible to know what would be purged without
the "-i" flag.
The only way to see what is purged is actually purging the datasets (kind of defeats the
purpose of "info only").
I think the attached patch fixes both issues.
3. The relevant wiki page
(
https://bitbucket.org/galaxy/galaxy-central/wiki/Config/PurgeHistoriesAnd...) says
about "delete_datasets.sh": "The purge_datasets.sh script will need to be
run afterwards to remove the base datasets from disk."
But the example on the wiki page (and in the script) has "-r" - so the files
are actually deleted from the disk by "delete_datasets.sh".
Does one still need to run "purge_datasets.sh" if used "-r" with
"delete_datasets.sh" ?
4. If I accidentally run "purge_datasets.sh" without "-r" = is there
a way to delete the stale files ?
if not, perhaps the script should require either "-i" or "-r" to
avoid such cases (or provide another cleanup script?)
comments are welcomed,
-gordon
<galaxy_cleanup_info_only.patch>___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
http://lists.bx.psu.edu/
Greg Von Kuster
Galaxy Development Team
greg(a)bx.psu.edu