From 754a7ddfff3b5319b8ce759c55c5faa2c2eee754 Mon Sep 17 00:00:00 2001 From: Rudra Saraswat Date: Mon, 15 May 2023 12:43:15 +0530 Subject: [PATCH] feat: fix minor bugs --- akshara | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akshara b/akshara index 2c6b195..6b7557e 100755 --- a/akshara +++ b/akshara @@ -205,7 +205,7 @@ def update_system(): def handle_system_packages(operation): - if len(args.pkg) == 0: + if len(args.pkg) == 0 and operation != 'drop-overlay': error('no packages specified') exit(1) @@ -302,7 +302,7 @@ def handle_system_packages(operation): exec('mv', usr_overlay, '/.blend-overlays/future-usr') exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman') exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir) - exec('bash', '-c', "printf > /.custom_pkg_list") + exec('bash', '-c', "printf '' > /.custom_pkg_list") for pkg in args.pkg: exec('bash', '-c', f"echo '{pkg}' >> /.custom_pkg_list") exec('touch', '/.blend-overlays/future-usr/.okay')