diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-06-29 07:52:50 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-06-29 07:52:50 -0500 |
commit | af9b07825037bd5dd838072329872db8459777ef (patch) | |
tree | fe20e2b88da472ac0baf3f36c2c9f640f981b7e6 | |
parent | a579f253b9142d16d36c3db27f2c8f78d9ac14ae (diff) | |
download | sbotools2-af9b07825037bd5dd838072329872db8459777ef.tar.xz |
fixed bug where update_tree didn't do anything with check_slackbuilds_txt knowledge
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 057a60d..c50f92b 100644 --- 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 |