packagekit/backends/apt/helpers/resolve.py

21 lines
580 B
Python
Raw Normal View History

2007-11-07 09:32:34 -08:00
#!/usr/bin/python
#
# Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
#
# Licensed under the GNU General Public License Version 2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
import sys
from aptBackend import PackageKitAptBackend
filters = sys.argv[1]
name=sys.argv[2]
backend = PackageKitAptBackend(sys.argv[2:])
backend.resolve(name)
backend.unLock()
sys.exit(0)