Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8b5e9920 authored by Deucе's avatar Deucе 👌🏾

IGMs do not need a name (see CNW 1371 upgrade for example)

parent 3c58ac7a
......@@ -203,14 +203,6 @@ var igm = parse_igm(igmf);
var fname = igmf.name.replace(/\.[^\.]*$/, '');
igmf.close();
if (igm.name === '') {
lln(' `bError:`4 No IGM name found in '+argv[0]);
sln('');
sln('');
more();
exit(1);
}
var install = true;
// TODO: Case insensitive crap...
if (file_exists(fname + '.sav')) {
......@@ -223,7 +215,7 @@ var tpdat;
var tplst;
var idx;
if (install) {
if (install_igm(fname, igm)) {
if (install_igm(fname, igm) && igm.name !== undefined) {
sln('');
tpdat = new File(getfname('3rdparty.dat'));
lln(' Adding IGM name to the text file `0'+tpdat.name+'`2...');
......@@ -245,7 +237,7 @@ if (install) {
}
}
else {
if (uninstall_igm(fname, igm)) {
if (uninstall_igm(fname, igm) && igm.name !== undefined) {
tpdat = new File(getfname('3rdparty.dat'));
lln(' Removing name from '+tpdat.name+', a text file...');
if (!tpdat.open('r+b')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment