Write icon config as json instead of shell.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
@@ -217,8 +218,10 @@ class ImageBuilder(object):
|
|||||||
*self._BASE_PACKAGES)
|
*self._BASE_PACKAGES)
|
||||||
|
|
||||||
def _WriteVersion(self, chroot_path, timestamp):
|
def _WriteVersion(self, chroot_path, timestamp):
|
||||||
with open(os.path.join(chroot_path, 'etc', 'iconograph'), 'w') as fh:
|
with open(os.path.join(chroot_path, 'etc', 'iconograph.json'), 'w') as fh:
|
||||||
fh.write('TIMESTAMP=%d\n' % timestamp)
|
json.dump({
|
||||||
|
'timestamp': timestamp,
|
||||||
|
}, fh)
|
||||||
|
|
||||||
def _RunModules(self, chroot_path):
|
def _RunModules(self, chroot_path):
|
||||||
for module in self._modules:
|
for module in self._modules:
|
||||||
|
|||||||
Reference in New Issue
Block a user