mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-03 11:48:17 +00:00
onlrfs: fix wrong commands used in '--install' command
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
@@ -698,14 +698,14 @@ rm -f /usr/sbin/policy-rc.d
|
|||||||
src2 = os.path.join("/tmp", b)
|
src2 = os.path.join("/tmp", b)
|
||||||
|
|
||||||
logger.info("installing %s into %s", pkg, dir_)
|
logger.info("installing %s into %s", pkg, dir_)
|
||||||
cmd = ('/usr/bin/rfs-dpkg', '-i', src2,)
|
cmd = ('/usr/bin/dpkg', '-i', src2,)
|
||||||
onlu.execute(cmd,
|
onlu.execute(cmd,
|
||||||
chroot=dir_,
|
chroot=dir_,
|
||||||
ex=OnlRfsError("install of %s failed" % pkg))
|
ex=OnlRfsError("install of %s failed" % pkg))
|
||||||
|
|
||||||
name, _, _ = pkg.partition(':')
|
name, _, _ = pkg.partition(':')
|
||||||
logger.info("updating dependencies for %s", pkg)
|
logger.info("updating dependencies for %s", pkg)
|
||||||
cmd = ('/usr/bin/rfs-apt-get', '-f', 'install', name,)
|
cmd = ('/usr/bin/apt-get', '-f', 'install', name,)
|
||||||
onlu.execute(cmd,
|
onlu.execute(cmd,
|
||||||
chroot=dir_,
|
chroot=dir_,
|
||||||
ex=OnlRfsError("install of %s failed" % pkg))
|
ex=OnlRfsError("install of %s failed" % pkg))
|
||||||
|
|||||||
Reference in New Issue
Block a user