Release for DSM7.0

This commit is contained in:
jasonchiu
2020-09-18 09:05:10 +00:00
parent e58d1055bc
commit 1ecf80a90f
96 changed files with 4490 additions and 2156 deletions

View File

@ -0,0 +1,34 @@
#! /usr/bin/python3
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.
import logging
class PkgCreateError(RuntimeError):
def __init__(self, title, msg=[]):
logging.error('[ERROR] ' + title)
if isinstance(msg, list):
for line in msg:
logging.error(line)
else:
logging.error(msg)
class CollectPackageError(PkgCreateError):
pass
class LinkPackageError(PkgCreateError):
pass
class BuildPackageError(PkgCreateError):
pass
class InstallPacageError(PkgCreateError):
pass
class TraverseProjectError(PkgCreateError):
pass