Support gen depends of exported sources 82/246882/3
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 5 Nov 2020 02:21:23 +0000 (11:21 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 5 Nov 2020 05:26:40 +0000 (14:26 +0900)
Change-Id: If77ab50c3812517ce7b7bf5588edc49ee38d1cbd

depanneur

index 670ec62..d551661 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -2417,6 +2417,11 @@ sub generate_depends() {
                 push @packs, $new_p;
             }
         }
+    } elsif ($style eq 'tar') {
+        File::Find::find({wanted => \&dir_wanted}, $package_path );
+        if (@packs == 0) {
+            error("No source package found at $package_path");
+        }
     } else {
         @packs = @ARGV;
         if (@packs == 0) {