mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
This commit is contained in:
parent
d6b1bcc375
commit
1934360cf4
1 changed files with 4 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ passthru('mv '
|
||||||
passthru('rm -dfr '.escapeshellarg(DEB_DEST_DIR));
|
passthru('rm -dfr '.escapeshellarg(DEB_DEST_DIR));
|
||||||
|
|
||||||
// https://github.com/the-djmaze/snappymail/issues/185#issuecomment-1059420588
|
// https://github.com/the-djmaze/snappymail/issues/185#issuecomment-1059420588
|
||||||
passthru('dpkg-scanpackages ' . escapeshellarg($TARGET_DIR) . ' /dev/null | gzip -9c > '.escapeshellarg($TARGET_DIR . 'Packages.gz'));
|
$cwd = getcwd();
|
||||||
|
chdir($TARGET_DIR);
|
||||||
|
passthru('dpkg-scanpackages . /dev/null | gzip -9c > '.escapeshellarg($TARGET_DIR . 'Packages.gz'));
|
||||||
$size = filesize($TARGET_DIR . 'Packages.gz');
|
$size = filesize($TARGET_DIR . 'Packages.gz');
|
||||||
$Release = 'Origin: SnappyMail Repository
|
$Release = 'Origin: SnappyMail Repository
|
||||||
Label: SnappyMail
|
Label: SnappyMail
|
||||||
|
|
@ -73,3 +75,4 @@ SHA256:
|
||||||
' . hash_file('sha256', $TARGET_DIR . 'Packages.gz') . ' ' . $size . ' Packages.gz
|
' . hash_file('sha256', $TARGET_DIR . 'Packages.gz') . ' ' . $size . ' Packages.gz
|
||||||
';
|
';
|
||||||
file_put_contents($TARGET_DIR . 'Release', $Release);
|
file_put_contents($TARGET_DIR . 'Release', $Release);
|
||||||
|
chdir($cwd);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue