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~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75f7f157ceb397241083101ce26f337ef9f2f8bd;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 cd04271..e0495ee 100755 --- a/depanneur +++ b/depanneur @@ -1992,6 +1992,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