penguins-eggs 9.6.21 → 9.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oclif.manifest.json +1 -1
- package/README.md +53 -28
- package/conf/eggs.yaml +1 -1
- package/conf/exclude.list.custom +3 -0
- package/conf/exclude.list.homes +67 -0
- package/conf/{exclude.list → exclude.list.template} +3 -74
- package/dist/classes/compressors.js +33 -14
- package/dist/classes/daddy.js +0 -2
- package/dist/classes/distro.js +2 -2
- package/dist/classes/{family → families}/archlinux.js +15 -16
- package/dist/classes/{family → families}/debian.js +33 -28
- package/dist/classes/{family → families}/fedora.js +2 -1
- package/dist/classes/families/mockup.js +100 -0
- package/dist/classes/{family → families}/suse.js +1 -1
- package/dist/classes/ovary.js +104 -85
- package/dist/classes/pacman.js +47 -38
- package/dist/classes/tools.js +0 -3
- package/dist/classes/utils.js +10 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/produce.js +20 -3
- package/dist/interfaces/i-addons.js +1 -0
- package/dist/interfaces/i-filters.js +3 -0
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +5 -4
- package/package.json +1 -1
- package/scripts/_eggs +1 -0
- package/scripts/eggs.bash +1 -1
- package/scripts/non-live-cmdline +0 -194
|
@@ -24,6 +24,9 @@ class Compressors {
|
|
|
24
24
|
this.source = '/tmp/eggs-mksquash-test';
|
|
25
25
|
this.dest = '/tmp/eggs-mksquash-dest';
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* populate
|
|
29
|
+
*/
|
|
27
30
|
async populate() {
|
|
28
31
|
await this.prepareCheck();
|
|
29
32
|
this.isEnabled.error = await this.check('error');
|
|
@@ -34,47 +37,63 @@ class Compressors {
|
|
|
34
37
|
this.isEnabled.zstd = await this.check('zstd');
|
|
35
38
|
await this.removeCheck();
|
|
36
39
|
}
|
|
37
|
-
|
|
40
|
+
/**
|
|
41
|
+
* fast
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
38
44
|
fast() {
|
|
39
45
|
let comp = 'gzip';
|
|
40
46
|
if (this.isEnabled.zstd) {
|
|
41
|
-
comp = 'zstd -b
|
|
47
|
+
comp = 'zstd -b 1M -Xcompression-level 1';
|
|
42
48
|
}
|
|
43
49
|
else if (this.isEnabled.lz4) {
|
|
44
50
|
comp = 'lz4';
|
|
45
51
|
}
|
|
46
52
|
return comp;
|
|
47
53
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
else {
|
|
55
|
-
comp = 'xz -b 256K';
|
|
56
|
-
}
|
|
54
|
+
/**
|
|
55
|
+
* standard
|
|
56
|
+
* @returns
|
|
57
|
+
*/
|
|
58
|
+
standard() {
|
|
59
|
+
let comp = 'xz -b 1M';
|
|
57
60
|
return comp;
|
|
58
61
|
}
|
|
59
62
|
/**
|
|
60
|
-
* max
|
|
63
|
+
* max
|
|
61
64
|
* @returns
|
|
62
65
|
*/
|
|
63
66
|
max() {
|
|
64
|
-
let
|
|
67
|
+
let filter = 'x86';
|
|
65
68
|
if (process.arch === 'arm64') {
|
|
66
|
-
|
|
69
|
+
filter = 'arm';
|
|
70
|
+
}
|
|
71
|
+
let options = '-b 1M -no-duplicates -no-recovery -always-use-fragments';
|
|
72
|
+
if (process.arch === 'ia32') {
|
|
73
|
+
// options = '-b 1M'
|
|
67
74
|
}
|
|
75
|
+
let comp = `xz -Xbcj ${filter} ${options}`;
|
|
68
76
|
return comp;
|
|
69
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* prepareCheck
|
|
80
|
+
*/
|
|
70
81
|
async prepareCheck() {
|
|
71
82
|
shelljs_1.default.exec('rm -rf ' + this.source, { silent: true });
|
|
72
83
|
shelljs_1.default.exec('mkdir ' + this.source, { silent: true });
|
|
73
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* removeCheck
|
|
87
|
+
*/
|
|
74
88
|
async removeCheck() {
|
|
75
89
|
shelljs_1.default.exec('rm -rf ' + this.source, { silent: true });
|
|
76
90
|
shelljs_1.default.exec('rm -f ' + this.dest, { silent: true });
|
|
77
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* check mksquashfs exists
|
|
94
|
+
* @param compressor
|
|
95
|
+
* @returns
|
|
96
|
+
*/
|
|
78
97
|
async check(compressor) {
|
|
79
98
|
let result = false;
|
|
80
99
|
const stderr = shelljs_1.default.exec('mksquashfs ' + this.source + ' ' + this.dest + ' -comp ' + compressor + ' -ef ' + this.dest, { silent: true }).stderr;
|
package/dist/classes/daddy.js
CHANGED
|
@@ -58,8 +58,6 @@ class Daddy {
|
|
|
58
58
|
config.root_passwd = newConf.root_passwd;
|
|
59
59
|
config.theme = newConf.theme;
|
|
60
60
|
await this.settings.save(config);
|
|
61
|
-
// console.clear()
|
|
62
|
-
// Utils.titles('dad')
|
|
63
61
|
console.log();
|
|
64
62
|
console.log(chalk_1.default.cyan('Your configuration was saved on: /etc/penguins-eggs.d'));
|
|
65
63
|
console.log();
|
package/dist/classes/distro.js
CHANGED
|
@@ -83,10 +83,10 @@ class Distro {
|
|
|
83
83
|
* -c, --codename show code name of this distribution
|
|
84
84
|
*/
|
|
85
85
|
if (this.distroId === 'Debian' && this.releaseId === 'unstable' && this.codenameId === 'sid') {
|
|
86
|
-
this.codenameId = '
|
|
86
|
+
this.codenameId = 'trixie';
|
|
87
87
|
}
|
|
88
88
|
else if (this.distroId === 'Debian' && this.releaseId === 'testing/unstable') {
|
|
89
|
-
this.codenameId = '
|
|
89
|
+
this.codenameId = 'trixie';
|
|
90
90
|
this.releaseLike = 'unstable';
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
/**
|
|
4
4
|
* penguins-eggs
|
|
5
|
-
*
|
|
5
|
+
* classes/families: archilinux.ts
|
|
6
6
|
* author: Piero Proietti
|
|
7
7
|
* email: piero.proietti@gmail.com
|
|
8
8
|
* license: MIT
|
|
@@ -16,33 +16,29 @@ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
|
|
|
16
16
|
const dependencies_1 = require("../../lib/dependencies");
|
|
17
17
|
const utils_2 = require("../../lib/utils");
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Archlinux
|
|
20
20
|
* @remarks all the utilities
|
|
21
21
|
*/
|
|
22
22
|
class Archlinux {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Archlinux: isInstalledXorg
|
|
25
25
|
* @returns true if xorg is installed
|
|
26
26
|
*/
|
|
27
27
|
static isInstalledXorg() {
|
|
28
28
|
return this.packageIsInstalled('xorg-server-common');
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @returns true if wayland
|
|
31
|
+
* Archlinux: isInstalledWayland
|
|
32
|
+
* @returns true if wayland is installed
|
|
33
33
|
*/
|
|
34
34
|
static isInstalledWayland() {
|
|
35
35
|
return this.packageIsInstalled('xwayland');
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Archlinux: packages
|
|
39
|
+
* Create array packages to install/remove
|
|
39
40
|
*/
|
|
40
41
|
static packages(remove = false, verbose = false) {
|
|
41
|
-
/**
|
|
42
|
-
* praticamente non serve, perche prende dal pacchetto o da pkgbuild
|
|
43
|
-
*/
|
|
44
|
-
// non può essere pacman è universalmente presente
|
|
45
|
-
// 'pacman', 'awk', 'dosfstools'
|
|
46
42
|
const packages = ['']; // 'arch-install-scripts', 'e2fsprogs', 'erofs-utils', 'findutils', 'gzip', 'libarchive', 'libisoburn', 'mtools', 'openssl', 'rsync', 'sed', 'syslinux', 'squashfs-tools']
|
|
47
43
|
const toInstall = [];
|
|
48
44
|
const toRemove = [];
|
|
@@ -60,7 +56,7 @@ class Archlinux {
|
|
|
60
56
|
return toInstall;
|
|
61
57
|
}
|
|
62
58
|
/**
|
|
63
|
-
*
|
|
59
|
+
* Archlinux: prerequisitesInstall
|
|
64
60
|
*/
|
|
65
61
|
static async prerequisitesInstall(verbose = true) {
|
|
66
62
|
const echo = utils_1.default.setEcho(verbose);
|
|
@@ -85,7 +81,7 @@ class Archlinux {
|
|
|
85
81
|
return retVal;
|
|
86
82
|
}
|
|
87
83
|
/**
|
|
88
|
-
*
|
|
84
|
+
* Archlinux: calamaresInstall
|
|
89
85
|
*/
|
|
90
86
|
static async calamaresInstall(verbose = false) {
|
|
91
87
|
verbose = true; // serve per pacman
|
|
@@ -110,14 +106,14 @@ class Archlinux {
|
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
/**
|
|
113
|
-
* calamaresPolicies
|
|
109
|
+
* Archlinux: calamaresPolicies
|
|
114
110
|
*/
|
|
115
111
|
static async calamaresPolicies() {
|
|
116
112
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
117
113
|
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
118
114
|
}
|
|
119
115
|
/**
|
|
120
|
-
*
|
|
116
|
+
* Archlinux: calamaresRemove
|
|
121
117
|
*/
|
|
122
118
|
static async calamaresRemove(verbose = true) {
|
|
123
119
|
verbose = true; // serve per pacman
|
|
@@ -143,6 +139,7 @@ class Archlinux {
|
|
|
143
139
|
return removed;
|
|
144
140
|
}
|
|
145
141
|
/**
|
|
142
|
+
* Archlinux: packageIsInstalled
|
|
146
143
|
* restuisce VERO se il pacchetto è installato
|
|
147
144
|
* @param packageName
|
|
148
145
|
*/
|
|
@@ -156,6 +153,7 @@ class Archlinux {
|
|
|
156
153
|
return installed;
|
|
157
154
|
}
|
|
158
155
|
/**
|
|
156
|
+
* Archlinux: packageInstall
|
|
159
157
|
* Install the package packageName
|
|
160
158
|
* @param packageName {string} Pacchetto Debian da installare
|
|
161
159
|
* @returns {boolean} True if success
|
|
@@ -168,6 +166,7 @@ class Archlinux {
|
|
|
168
166
|
return retVal;
|
|
169
167
|
}
|
|
170
168
|
/**
|
|
169
|
+
* Archlinux: packagePacmanAvailable
|
|
171
170
|
* restuisce VERO se il pacchetto è installato
|
|
172
171
|
* @param packageName
|
|
173
172
|
*/
|
|
@@ -181,7 +180,7 @@ class Archlinux {
|
|
|
181
180
|
return available;
|
|
182
181
|
}
|
|
183
182
|
/**
|
|
184
|
-
*
|
|
183
|
+
* Archlinux: packagePacmanLast
|
|
185
184
|
* @param packageName
|
|
186
185
|
* @returns
|
|
187
186
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* penguins-eggs
|
|
4
|
-
*
|
|
4
|
+
* classes/families: debian.ts
|
|
5
5
|
* author: Piero Proietti
|
|
6
6
|
* email: piero.proietti@gmail.com
|
|
7
7
|
* license: MIT
|
|
@@ -15,34 +15,27 @@ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
|
|
|
15
15
|
const utils_2 = require("../../lib/utils");
|
|
16
16
|
const dependencies_1 = require("../../lib/dependencies");
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Debian
|
|
19
19
|
* @remarks all the utilities
|
|
20
20
|
*/
|
|
21
21
|
class Debian {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Debian: isInstalledXorg
|
|
24
24
|
* @returns true if xorg is installed
|
|
25
25
|
*/
|
|
26
26
|
static isInstalledXorg() {
|
|
27
|
-
|
|
28
|
-
// if (Pacman.distro().codenameLikeId === 'bionic') {
|
|
29
|
-
/*
|
|
30
|
-
* BUT_ on Ubuntu bionic we have:
|
|
31
|
-
* xserver-xorg-core-hwe-18.04
|
|
32
|
-
*/
|
|
33
|
-
// test = 'xserver-xorg-core-hwe-18.04'
|
|
34
|
-
// }
|
|
35
|
-
return this.packageIsInstalled(test);
|
|
27
|
+
return this.packageIsInstalled('xserver-xorg-core');
|
|
36
28
|
}
|
|
37
29
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @returns true if wayland
|
|
30
|
+
* Debian: isInstalledWayland
|
|
31
|
+
* @returns true if wayland is installed
|
|
40
32
|
*/
|
|
41
33
|
static isInstalledWayland() {
|
|
42
34
|
return this.packageIsInstalled('xwayland');
|
|
43
35
|
}
|
|
44
36
|
/**
|
|
45
|
-
*
|
|
37
|
+
* Debian: packages
|
|
38
|
+
* Create array packages to install/remove
|
|
46
39
|
*/
|
|
47
40
|
static packages(remove = false, verbose = false) {
|
|
48
41
|
let packages = [];
|
|
@@ -67,6 +60,9 @@ class Debian {
|
|
|
67
60
|
}
|
|
68
61
|
}
|
|
69
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* depending on init/systemd
|
|
65
|
+
*/
|
|
70
66
|
const initType = shelljs_1.default.exec('ps --no-headers -o comm 1', { silent: !verbose }).trim();
|
|
71
67
|
for (const dep of dependencies_1.depInit) {
|
|
72
68
|
if (dep.init.includes(initType)) {
|
|
@@ -85,7 +81,8 @@ class Debian {
|
|
|
85
81
|
return packages;
|
|
86
82
|
}
|
|
87
83
|
/**
|
|
88
|
-
*
|
|
84
|
+
* Debian: prerequisitesInstall
|
|
85
|
+
* install prerequisites
|
|
89
86
|
*/
|
|
90
87
|
static async prerequisitesInstall(verbose = true) {
|
|
91
88
|
const echo = utils_1.default.setEcho(verbose);
|
|
@@ -110,14 +107,7 @@ class Debian {
|
|
|
110
107
|
return retVal;
|
|
111
108
|
}
|
|
112
109
|
/**
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
static async liveInstallerPolicies() {
|
|
116
|
-
const policyFile = '/usr/share/polkit-1/actions/com.github.pieroproietti.penguins-eggs.policy';
|
|
117
|
-
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
110
|
+
* Debian: calamaresInstall
|
|
121
111
|
*/
|
|
122
112
|
static async calamaresInstall(verbose = true) {
|
|
123
113
|
const echo = utils_1.default.setEcho(verbose);
|
|
@@ -135,14 +125,14 @@ class Debian {
|
|
|
135
125
|
}
|
|
136
126
|
}
|
|
137
127
|
/**
|
|
138
|
-
* calamaresPolicies
|
|
128
|
+
* Debian: calamaresPolicies
|
|
139
129
|
*/
|
|
140
130
|
static async calamaresPolicies() {
|
|
141
131
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
142
132
|
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
143
133
|
}
|
|
144
134
|
/**
|
|
145
|
-
*
|
|
135
|
+
* Debian: calamaresRemove
|
|
146
136
|
*/
|
|
147
137
|
static async calamaresRemove(verbose = true) {
|
|
148
138
|
const echo = utils_1.default.setEcho(verbose);
|
|
@@ -155,6 +145,15 @@ class Debian {
|
|
|
155
145
|
return retVal;
|
|
156
146
|
}
|
|
157
147
|
/**
|
|
148
|
+
* Debian: liveInstallerPolicies
|
|
149
|
+
* liveInstallerPolicies is NOT USED
|
|
150
|
+
*/
|
|
151
|
+
static async liveInstallerPolicies() {
|
|
152
|
+
const policyFile = '/usr/share/polkit-1/actions/com.github.pieroproietti.penguins-eggs.policy';
|
|
153
|
+
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Debian: packageIsInstalled
|
|
158
157
|
* restuisce VERO se il pacchetto è installato
|
|
159
158
|
* @param debPackage
|
|
160
159
|
*/
|
|
@@ -168,7 +167,7 @@ class Debian {
|
|
|
168
167
|
return installed;
|
|
169
168
|
}
|
|
170
169
|
/**
|
|
171
|
-
*
|
|
170
|
+
* Debian: packageInstall
|
|
172
171
|
* @param packageName {string} Pacchetto Debian da installare
|
|
173
172
|
* @returns {boolean} True if success
|
|
174
173
|
*/
|
|
@@ -180,7 +179,8 @@ class Debian {
|
|
|
180
179
|
return retVal;
|
|
181
180
|
}
|
|
182
181
|
/**
|
|
183
|
-
*
|
|
182
|
+
* Debian: packageAptAvailable
|
|
183
|
+
* return TRUE if package is present on repository
|
|
184
184
|
* @param debPackage
|
|
185
185
|
*/
|
|
186
186
|
static async packageAptAvailable(packageName) {
|
|
@@ -193,6 +193,11 @@ class Debian {
|
|
|
193
193
|
}
|
|
194
194
|
return available;
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Debian: packageAptLast
|
|
198
|
+
* @param debPackage
|
|
199
|
+
* @returns version
|
|
200
|
+
*/
|
|
196
201
|
static async packageAptLast(debPackage) {
|
|
197
202
|
let version = '';
|
|
198
203
|
const cmd = `apt-cache show ${debPackage} | grep Version:`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* penguins-eggs
|
|
4
|
-
*
|
|
4
|
+
* classes/families: fedora.ts
|
|
5
5
|
* author: Piero Proietti
|
|
6
6
|
* email: piero.proietti@gmail.com
|
|
7
7
|
* license: MIT
|
|
@@ -110,6 +110,7 @@ class Fedora {
|
|
|
110
110
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
111
111
|
await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
|
|
112
112
|
}
|
|
113
|
+
// yay???
|
|
113
114
|
await (0, utils_2.exec)('yay -Rns calamares', echo);
|
|
114
115
|
return retVal;
|
|
115
116
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
/**
|
|
4
|
+
* penguins-eggs
|
|
5
|
+
* classes/families: archilinux.ts
|
|
6
|
+
* author: Piero Proietti
|
|
7
|
+
* email: piero.proietti@gmail.com
|
|
8
|
+
* license: MIT
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
/**
|
|
12
|
+
* Mockup
|
|
13
|
+
* @remarks all the utilities
|
|
14
|
+
*/
|
|
15
|
+
class Mockup {
|
|
16
|
+
/**
|
|
17
|
+
* Mockup: isInstalledXorg
|
|
18
|
+
* @returns true if xorg is installed
|
|
19
|
+
*/
|
|
20
|
+
static isInstalledXorg() {
|
|
21
|
+
return this.packageIsInstalled('xorg-server-common');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Mockup: isInstalledWayland
|
|
25
|
+
* @returns true if wayland is installed
|
|
26
|
+
*/
|
|
27
|
+
static isInstalledWayland() {
|
|
28
|
+
return this.packageIsInstalled('xwayland');
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Mockup: packages
|
|
32
|
+
* Create array packages to install/remove
|
|
33
|
+
*/
|
|
34
|
+
static packages(remove = false, verbose = false) {
|
|
35
|
+
let packages = [''];
|
|
36
|
+
return packages;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Mockup: prerequisitesInstall
|
|
40
|
+
*/
|
|
41
|
+
static async prerequisitesInstall(verbose = true) {
|
|
42
|
+
let retVal = false;
|
|
43
|
+
return retVal;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Mockup: calamaresInstall
|
|
47
|
+
*/
|
|
48
|
+
static async calamaresInstall(verbose = false) {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Mockup: calamaresPolicies
|
|
52
|
+
*/
|
|
53
|
+
static async calamaresPolicies() {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Mockup: calamaresRemove
|
|
57
|
+
*/
|
|
58
|
+
static async calamaresRemove(verbose = true) {
|
|
59
|
+
let removed = false;
|
|
60
|
+
return removed;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Mockup: packageIsInstalled
|
|
64
|
+
* restuisce VERO se il pacchetto è installato
|
|
65
|
+
* @param packageName
|
|
66
|
+
*/
|
|
67
|
+
static packageIsInstalled(packageName) {
|
|
68
|
+
let installed = false;
|
|
69
|
+
return installed;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Mockup: packageInstall
|
|
73
|
+
* Install the package packageName
|
|
74
|
+
* @param packageName {string}
|
|
75
|
+
* @returns {boolean} True if success
|
|
76
|
+
*/
|
|
77
|
+
static async packageInstall(packageName) {
|
|
78
|
+
let retVal = false;
|
|
79
|
+
return retVal;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Mockup: packagePacmanAvailable
|
|
83
|
+
* restuisce VERO se il pacchetto è installato
|
|
84
|
+
* @param packageName
|
|
85
|
+
*/
|
|
86
|
+
static async packagePacmanAvailable(packageName) {
|
|
87
|
+
let available = false;
|
|
88
|
+
return available;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Mockup: packagePacmanLast
|
|
92
|
+
* @param packageName
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
95
|
+
static async packagePacmanLast(packageName) {
|
|
96
|
+
let version = '';
|
|
97
|
+
return version;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.default = Mockup;
|