smart installation not scriptable

Patrick Shanahan ptilopteri at gmail.com
Tue Dec 18 20:43:40 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Cliff Wells <cliff at develix.com> [12-18-07 23:24]:
> 
> Unfortunately this seems to invoke the same series of questions:
> 
> Running Transaction
>   Installing: fedora-package-config-smart  ######################### [1/2] 
>   Installing: smart                        ######################### [2/2] 
> 
> Dependency Installed: fedora-package-config-smart.i386 0:8-10 smart.i386 0:0.51-49.fc8
> Complete!
> [root at vz111 tmp]# smart channel -y --remove-all
> New channel 'Fedora - i386 - Development (development)' detected.
> Include it? (Y/n): 
> 
> 
> Were it possible, I'd not install fedora-package-config-smart, but it's
> a dependency of smart itself (and force installing is against my
> religion).  Anyway, this problem is clearly a shortcoming in smart.  -y
> should answer "yes" to all questions, not "most" questions.
> 

there is still a solution.  Since smart appears to want to confirm the
packaged channels before removing them, let's remove them before
initiating smart the first time.

you have installed smart.  Next step in your script

rm -f /var/lib/smart/channels
rm -f /var/lib/smart/config
rm -f /var/lib/smart/cache
smart channel --add ./your_channels.txt
smart update
.....


it appears that the fedora package includes channels and config (cache
may be missing and if so, that line should be removed from the script)
and is why the confirmation is requested.

btw:  I read the list.  That is where I saw you post your problem.
There is no reason to send me a personal second copy of mail that I
alread have and read in another location.  AND you DO know that I read
it on the list.  Please desist.

- -- 
Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFHaKF8ClSjbQz1U5oRAiG1AJ0Uoh26HtO7XGjseyIuLBNKSvdBQwCbB/al
zLiB4oa8iKYvefq5WgRyqY4=
=vI5F
-----END PGP SIGNATURE-----



More information about the Smart mailing list