Skip to content

Commit

Permalink
Delete the use of format string to be compatible with python3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
chaign_c committed Apr 7, 2018
1 parent 8fd1f0b commit 38ac5e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Fix static IP to use the right interface on all vm.
Fix network interfaces
Detect the current kernel arch and if it doesn't match the asked arch, prompt "clean?"

--- Sun Apr 8 2018
Fix the use of format string to be compatible with python3.5

TODO:
Search for new kernel and rootfs images, maybe I missed some of them that have ramfs inside the kernel image.
real time shared folder using libvirt ?
Expand Down
6 changes: 3 additions & 3 deletions arm_now/arm_now.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ def config_filesystem(rootfs, arch):
echo 'nameserver 10.0.2.3' >> /etc/resolv.conf
""")
if arch in install_opkg:
ext2_write_to_file(rootfs, "/root/install_pkg_manager.sh", f"""
ext2_write_to_file(rootfs, "/root/install_pkg_manager.sh", """
{install_opkg[arch]}
opkg update
echo -e '\n\n now you can $ opkg install gdb'
rm /root/install_pkg_manager.sh
""")
ext2_write_to_file(rootfs, "/etc/profile.d/opkg_path.sh", f"""
""".format(install_pkg=install_pkg))
ext2_write_to_file(rootfs, "/etc/profile.d/opkg_path.sh", """
export PATH=$PATH:/opt/bin:/opt/sbin
""")

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from setuptools import setup, Extension

setup(name='arm_now',
version='1.0',
version='1.01',
author='@chaign_c',
url='https://www.python.org/sigs/distutils-sig/',
url='https://github.com/nongiach/arm_now',
packages=['arm_now'],
py_modules=['arm_now'],
entry_points = {
Expand Down

0 comments on commit 38ac5e2

Please sign in to comment.