From: Jun Wang Date: Tue, 13 Sep 2016 08:53:04 +0000 (+0800) Subject: Fix bugs that when using --incremental and --skip-srcrpm can not del old *src.rpms X-Git-Tag: submit/devel/20190730.074511~43^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a86fe3ff4de3083df76363fe2f81e66f240a705;p=tools%2Fdepanneur.git Fix bugs that when using --incremental and --skip-srcrpm can not del old *src.rpms Change-Id: I989b9d2baaa1d88e16609bdb2e1c8e6207c084ec --- diff --git a/depanneur b/depanneur index af4f09e..9987adc 100755 --- a/depanneur +++ b/depanneur @@ -1984,6 +1984,8 @@ sub build_package { if ($skip_srcrpm == 0){ my_system ("sudo /bin/mv $scratch/$srcrpmdirpath/*.rpm $srpm_repo_path"); } + } elsif ($skip_srcrpm == 1){ + my_system("/bin/rm -rf $srpm_repo_path/*.rpm"); } if (my @rpms = bsd_glob "$scratch/$rpmdirpath/*/*.rpm") { #remove old rpms in local repo