Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Feb 10, 2023
1 parent 8e2e60f commit fead2a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Expand Up @@ -122,7 +122,7 @@ async function buildPackage(pkg: Package) {
const aportsPkgDir = path.join(WORKDIR, "aports", pkg.aports_repo, pkg.name);

// check if rebuilding is necessary by compare rev-parse of local and remote
/*try {
try {
exec(`git -C ${pkgDir}/src/${pkg.name} fetch`);
try {
exec(`git -C ${pkgDir}/src/${pkg.name} checkout kf5`);
Expand All @@ -134,15 +134,15 @@ async function buildPackage(pkg: Package) {
const localRev = exec(`git -C ${pkgDir}/src/${pkg.name} rev-parse @`, false).toString().trim();
if (remoteRev === localRev) {
console.log("📦 -> Already up to date (upstream), skipping");
//return;
return;
} else {
console.log("📦 -> New commits found, rebuilding");
console.log(` ->Deleting ${pkgDir}`)
exec(`rm -rf ${pkgDir}`);
}
} catch {
console.log("📦 -> Not cloned, cloning");
}*/
}

console.log(`📦 -> Deleting ${pkgDir}`)
exec(`rm -rf ${pkgDir}`);
Expand Down

0 comments on commit fead2a7

Please sign in to comment.