~evfool/sessioninstaller/fix790500

« back to all changes in this revision

Viewing changes to test

  • Committer: sebi at glatzor
  • Date: 2010-09-24 05:57:55 UTC
  • Revision ID: sebi@glatzor.de-20100924055755-186dfs6590nz9ccr
Add a test case for install provide files

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    parser.add_option("", "--install-files",
42
42
                      action="store", type="string", dest="install_files",
43
43
                      help=_("Install package files"))
 
44
    parser.add_option("", "--install-provide-files",
 
45
                      action="store", type="string", dest="install_provide",
 
46
                      help=_("Install packages which provide the given files"))
44
47
    parser.add_option("", "--remove-files",
45
48
                      action="store", type="string", dest="remove_files",
46
49
                      help=_("Remove the packages which provide the given "
120
123
                            options.interaction,
121
124
                            timeout=options.timeout,
122
125
                            dbus_interface=PACKAGEKIT_MODIFY_DBUS_INTERFACE)
 
126
    elif options.install_provide:
 
127
        print _("Installing providers: %s") % options.install_provide
 
128
        pk.InstallProvideFiles(xid, options.install_provide.split(),
 
129
                               options.interaction,
 
130
                               timeout=options.timeout,
 
131
                               dbus_interface=PACKAGEKIT_MODIFY_DBUS_INTERFACE)
123
132
    elif options.install_gstreamer:
124
133
        if options.install_gstreamer == "single":
125
134
            resources = ["Windows Media Video 9|gstreamer0.10"