commit af9b07825037bd5dd838072329872db8459777ef
parent a579f253b9142d16d36c3db27f2c8f78d9ac14ae
Author: Jacob Pipkin <j@dawnrazor.net>
Date: Fri, 29 Jun 2012 07:52:50 -0500
fixed bug where update_tree didn't do anything with check_slackbuilds_txt knowledge
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
@@ -144,13 +144,13 @@ sub rsync_sbo_tree {
sub fetch_tree {
check_home ();
print "Pulling SlackBuilds tree...\n";
- rsync_sbo_tree ();
+ rsync_sbo_tree (), return;
}
sub update_tree {
- check_slackbuilds_txt ();
+ fetch_tree (), return unless check_slackbuilds_txt ();
print "Updating SlackBuilds tree...\n";
- rsync_sbo_tree ();
+ rsync_sbo_tree (), return;
}
# if the SLACKBUILDS.TXT is not in $config{SBO_HOME}, we assume the tree has