Skip to content

Commit

Permalink
fix: don't output full .Packages-*
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Jun 13, 2024
1 parent ac17b3a commit 1c84bdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127735,10 +127735,10 @@ async function main(input) {
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("sudo apt-get update");
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("sudo apt-get install -y dpkg-dev");
await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(packagesPath, (0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`dpkg-scanpackages --multiversion ${input.version}`));
const packages = (0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("cat .Packages-*");
// NOTE: An unzipped package index is necessary for apt-get to recognize the
// local repository created below
await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(allPackagesPath, packages);
// local repository created below. By redirecting the output we also avoid breaking the Github webUI displaying too much data.
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`cat .Packages-* > ${allPackagesPath}`);
const packages = await fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(allPackagesPath, 'utf8');
await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(allPackagesGzippedPath, await gzip(packages));
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("ls -R");
_actions_core__WEBPACK_IMPORTED_MODULE_2__.info(`Adding a local Debian repository at ${process.cwd()}`);
Expand Down
6 changes: 3 additions & 3 deletions src/publish-crates-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export async function main(input: Input) {
sh("sudo apt-get install -y dpkg-dev");

await fs.writeFile(packagesPath, sh(`dpkg-scanpackages --multiversion ${input.version}`));
const packages = sh("cat .Packages-*");
// NOTE: An unzipped package index is necessary for apt-get to recognize the
// local repository created below
await fs.writeFile(allPackagesPath, packages);
// local repository created below. By redirecting the output we also avoid breaking the Github webUI displaying too much data.
sh(`cat .Packages-* > ${allPackagesPath}`);
const packages = await fs.readFile(allPackagesPath, 'utf8');
await fs.writeFile(allPackagesGzippedPath, await gzip(packages));

sh("ls -R");
Expand Down

0 comments on commit 1c84bdc

Please sign in to comment.