mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 03:45:14 +08:00
✨ Sync 2026-08-20 17:28:50
This commit is contained in:
1 parent
2a2f7e4252
commit
6b1fd2d7c3
22 files changed
+268
-226
No files matched your search
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=librespeed-common
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import { open, readfile, writefile, rename, mkdir } from 'fs';
|
||||
import { open, readfile, writefile, rename, mkdir, error } from 'fs';
|
||||
|
||||
// Packaging checks probe every executable for these.
|
||||
if (length(ARGV) > 0) {
|
||||
@@ -177,8 +177,11 @@ if (dir != '' && dir != archive_path)
|
||||
mkdir(dir, 0o755);
|
||||
|
||||
// Atomic: a reader never sees a half-written archive. A failed write goes to
|
||||
// syslog: this runs from cron, where stderr has nowhere to go.
|
||||
// syslog: this runs from cron, where stderr has nowhere to go. The reason
|
||||
// comes along, since a missing mount, a read-only filesystem and a full disk
|
||||
// each want something different from whoever reads that log.
|
||||
if (writefile(tmp, out) != null)
|
||||
rename(tmp, archive_path);
|
||||
else
|
||||
system(['logger', '-t', 'librespeed', `aggregate: cannot write ${tmp}`]);
|
||||
system(['logger', '-t', 'librespeed',
|
||||
`aggregate: cannot write ${tmp}: ${error()}`]);
|
||||
Reference in new issue
Block a user