Remove debian folder (#7311)
* removed debian folder * removed debian entries from check-strings * fixup verify script too
This commit is contained in:
@@ -141,26 +141,6 @@ for cur_file in sorted(Path('.').glob('*/patches/*.patch')):
|
||||
error(cur_file.as_posix(), f'Source file does not exist: {mpath.as_posix()}')
|
||||
|
||||
|
||||
caption('debian docs (only one string)')
|
||||
|
||||
# Checks for caps.html. This gets relevant when #4027 will be merged
|
||||
for line in Path('debian/lmms-common.docs').read_text(errors='replace').splitlines():
|
||||
line = line.rstrip()
|
||||
if 'caps.html' in line and not Path(line).is_file():
|
||||
error('debian/lmms-common.docs', f'Path does not exist: {line}')
|
||||
|
||||
|
||||
caption('debian/copyright')
|
||||
|
||||
pat = re.compile(r'^Files:\s*(\S+).*$', re.MULTILINE)
|
||||
ladspa_swh = re.compile(r'(plugins/LadspaEffect/swh/ladspa/[^/.]+)\.c')
|
||||
for mpath in pat.findall(Path('debian/copyright').read_text(errors='replace')):
|
||||
# in case of LADSPA SWH effects, check that the XML exists, not the C file
|
||||
# (because the C files are not generated until a build is done)
|
||||
if res2 := ladspa_swh.match(mpath):
|
||||
mpath = res2.group(1) + '.xml'
|
||||
if not any(Path('.').glob(mpath)):
|
||||
error('debian/copyright', f'Glob/Path does not exist: {mpath}')
|
||||
|
||||
|
||||
# summary
|
||||
|
||||
@@ -37,8 +37,6 @@ class ScriptTest():
|
||||
set_git_config()
|
||||
subprocess.run(['git', 'submodule', 'add', '../../carla', 'plugins/CarlaBase/carla'], check=True)
|
||||
create_file('src/core/classes.cpp', 'namespace lmms {\nclass TestClass\n}')
|
||||
create_file('debian/lmms-common.docs', '')
|
||||
create_file('debian/copyright', '')
|
||||
create_file('data/locale/de.ts',
|
||||
'<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1">\n'
|
||||
' <context>\n'
|
||||
@@ -131,24 +129,6 @@ with tempfile.TemporaryDirectory() as tmpdir:
|
||||
test.expect('Error: data/themes/classic/style.css: Class does not exist in source code: NonExistentClass')
|
||||
test.expect('1 errors')
|
||||
|
||||
with ScriptTest(check_strings) as test:
|
||||
create_file('debian/patches/clang.patch', '/plugins/non-existent-file')
|
||||
test.run()
|
||||
test.expect('Error: debian/patches/clang.patch: Source file does not exist: plugins/non-existent-file')
|
||||
test.expect('1 errors')
|
||||
|
||||
with ScriptTest(check_strings) as test:
|
||||
create_file('debian/lmms-common.docs', '/plugins/caps.html')
|
||||
test.run()
|
||||
test.expect('Error: debian/lmms-common.docs: Path does not exist: /plugins/caps.html')
|
||||
test.expect('1 errors')
|
||||
|
||||
with ScriptTest(check_strings) as test:
|
||||
create_file('debian/copyright', 'Files: NonExistent')
|
||||
test.run()
|
||||
test.expect('Error: debian/copyright: Glob/Path does not exist: NonExistent')
|
||||
test.expect('1 errors')
|
||||
|
||||
with ScriptTest(check_namespace) as test:
|
||||
# minimal working example
|
||||
test.run(0) # exitcode 0 - no errors expected
|
||||
|
||||
Reference in New Issue
Block a user