From 60e41c93314fc41c57110f8bf68b6362d8aaf093 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Fri, 29 Jun 2012 09:26:16 -0500 Subject: made (fetch|update)_tree return 1 on completion instead of nothing --- SBO-Lib/lib/SBO/Lib.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index b02bee1..fca3662 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 (), return; + rsync_sbo_tree (), return 1; } sub update_tree { fetch_tree (), return unless check_slackbuilds_txt (); print "Updating SlackBuilds tree...\n"; - rsync_sbo_tree (), return; + rsync_sbo_tree (), return 1; } # if the SLACKBUILDS.TXT is not in $config{SBO_HOME}, we assume the tree has -- cgit v1.2.3