smart installation not scriptable

Cliff Wells cliff at develix.com
Tue Dec 18 18:22:07 PST 2007


On Tue, 2007-12-18 at 20:49 -0500, ptilopteri at gmail.com wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> * Cliff Wells <cliff at develix.com> [12-18-07 19:07]:

> > smart update < /usr/bin/yes
>                ^^^^^^^^^^^^^^
> 	       not necessary
> 

> smart update" requires no other input unless you want to specify
> particular channel[s]

It does *on first install*, and this is my problem.  I'm trying to
automate installation after a fresh installation of a distro:


[root at vz111 /]# yum install smart -y 
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package smart.i386 0:0.51-49.fc8 set to be updated
--> Processing Dependency: smart-config for package: smart
--> Running transaction check
---> Package fedora-package-config-smart.i386 0:8-10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository
Size 
=============================================================================
Installing for dependencies:
 fedora-package-config-smart  i386       8-10             fedora
6.2 k
 smart                   i386       0.51-49.fc8      fedora
760 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 766 k
Downloading Packages:
(1/2): smart-0.51-49.fc8. 100% |=========================| 760 kB
00:02     
(2/2): fedora-package-con 100% |=========================| 6.2 kB
00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
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 /]# smart update
New channel 'Fedora - i386 - Development (development)' detected.
Include it? (Y/n): 

New channel 'Fedora - i386 - Development - Debug
(development-debuginfo)' detected.
Include it? (Y/n): 

New channel 'Fedora - Development - Source (development-source)'
detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 - Test Updates (updates-testing)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 - Test Updates Debug
(updates-testing-debuginfo)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - Test Updates Source (updates-testing-source)'
detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 - Updates - Debug (updates-debuginfo)'
detected.
Include it? (Y/n): 

New channel 'Fedora 8 - Updates Source (updates-source)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 - Updates (updates)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 (core)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - Source (core-source)' detected.
Include it? (Y/n): 

New channel 'Fedora 8 - i386 - Debug (core-debuginfo)' detected.
Include it? (Y/n): 

Updating cache...
########################################################################################### [100%]



Someone must interactively hit <Enter> for each of these questions and
this is my problem.  There is no "-y" option for "smart update" nor does
it accept input from /usr/bin/yes.  Worse, when run from a script with
no console, it apparently interprets everything as "N" so no
repositories get set up and smart will then fail to do anything from
that point on.

Regards,
Cliff




More information about the Smart mailing list