A suggestion for an additional confirmation step in "makesb" script

Post your comments, questions, bug reports or suggest new features for alphaOS
pentajazz
Advanced
Posts: 48
Joined: 27 Apr 2014, 23:09

A suggestion for an additional confirmation step in "makesb" script

Postby pentajazz » 03 May 2016, 16:58

A suggestion for an additional confirmation step in "makesb" script:
example:

[root@alphaos ~]# makesb base-devel
==> Downloading base-devel
:: There are 26 members in group base-devel:
:: Repository obarun
1) util-linux-nosystemd
:: Repository core
2) autoconf 3) automake 4) binutils 5) bison 6) fakeroot
7) file 8) findutils 9) flex 10) gawk 11) gcc 12) gettext
13) grep 14) groff 15) gzip 16) libtool 17) m4 18) make
19) pacman 20) patch 21) pkg-config 22) sed 23) sudo
24) texinfo 25) util-linux 26) which

Enter a selection (default=all):
resolving dependencies...
warning: dependency cycle detected:
warning: eudev-obarun will be installed before its util-linux-nosystemd dependency
warning: dependency cycle detected:
warning: uuidd-runitserv will be installed before its util-linux-nosystemd dependency

Packages (35) archlinux-keyring-20150605-1 eudev-obarun-3.1.5-1
gc-7.4.2-2 guile-2.0.11-2 libmpc-1.0.3-1
libsystemd-224-1 libunistring-0.9.6-1
perl-5.22.0-1 uuidd-runitserv-0.1-3
autoconf-2.69-2 automake-1.15-1 binutils-2.25.1-3
bison-3.0.4-1 fakeroot-1.20.2-1 file-5.24-1
findutils-4.4.2-6 flex-2.5.39-1 gawk-4.1.3-1
gcc-5.2.0-2 gettext-0.19.5-1 grep-2.21-2
groff-1.22.3-3 gzip-1.6-1 libtool-2.4.6-3
m4-1.4.17-1 make-4.1-1 pacman-4.2.1-2
patch-2.7.5-1 pkg-config-0.28-2 sed-4.2.2-3
sudo-1.8.14.p3-2 texinfo-5.2-3
util-linux-2.26.2-1 util-linux-nosystemd-2.28-1
which-2.21-1

Total Download Size: 63.34 MiB

:: Proceed with download? [Y/n]

This step is always a YES, it would be good to have the optional steps.

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: A suggestion for an additional confirmation step in "makesb" script

Postby Scooby » 03 May 2016, 17:25

pentajazz wrote:A suggestion for an additional confirmation step in "makesb" script:
example:

[root@alphaos ~]# makesb base-devel
==> Downloading base-devel
:: There are 26 members in group base-devel:
...
Enter a selection (default=all):
...

Total Download Size: 63.34 MiB

:: Proceed with download? [Y/n]

This step is always a YES, it would be good to have the optional steps.



Acually when I tried it here I didn't get the "(default=all)" option on my system but then I have devel loaded
so I am using apacman and will research difference with this.

However I get the behaviour without devel_17.sb loaded so makesb uses pacman with --noconfirm.

I guess I could create something like /etc/makesb.conf

where you could define a variable called confirm and then get your desired behaviour.

I think default should be noconfirm though

pentajazz
Advanced
Posts: 48
Joined: 27 Apr 2014, 23:09

Re: A suggestion for an additional confirmation step in "makesb" script

Postby pentajazz » 04 May 2016, 21:58

ok, i see
Sometimes confirmation is useful, manage it anyway you like.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 20 guests

cron