packagekit/helpers/yum-refresh-cache.py

20 lines
600 B
Python
Raw Normal View History

2007-08-22 14:09:05 -07:00
#!/usr/bin/python
#
# Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
2007-08-22 14:24:29 -07:00
# Copyright (C) 2007 Red Hat Inc, Seth Vidal <skvidal@fedoraproject.org>
2007-08-22 14:09:05 -07:00
#
# 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
2007-08-24 03:21:52 -07:00
from yumBackend import PackageKitYumBackend
2007-08-22 14:09:05 -07:00
2007-08-24 03:21:52 -07:00
backend = PackageKitYumBackend(sys.argv[1:])
backend.refresh_cache()
2007-08-24 04:42:35 -07:00
sys.exit(1)