build individual packages
authorAnas Nashif <anas.nashif@intel.com>
Sun, 22 Jul 2012 16:01:16 +0000 (17:01 +0100)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 22 Jul 2012 16:01:16 +0000 (17:01 +0100)
Change-Id: Ifbfd76cef3c75a7b74e2c3e16a7200176861179f

depanneur

index 9096ba9..4dd2d94 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -169,13 +169,16 @@ sub info {
     print GREEN, "$msg\n", RESET;
 }
 
-
+if ( -d "packaging" && -d ".git" ) {
+    $path = cwd();
+}
 if ( $path eq "" ) {
     $package_path = "$build_root/packages";
 } else {
     $package_path = $path;
 }
-print "Start building packages from: " . $package_path . "($style)\n";
+
+print "Start building packages from: " . $package_path . " ($style)\n";
 
 if ($binarylist ne "") {
     $buildall = 1;
@@ -705,7 +708,7 @@ my @done = ();
 my @skipped = ();
 my %caught;
 if ( ! -e "$localrepo/$dist/$arch/RPMS" ) {
-    print "Creating repo..."
+    print "Creating repo...";
     createrepo ($arch, $dist);
 }
 mkdir_p "$localrepo/$dist/$arch/logs/success";