update source

This commit is contained in:
Dimitris Zlatanidis 2015-02-14 12:11:45 +02:00
parent 0391c0d329
commit 58cbf58318
2 changed files with 2 additions and 4 deletions

View file

@ -21,7 +21,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from repolist import RepoList
from __metadata__ import MetaData as _m
@ -74,7 +73,6 @@ def options():
]
for opt in arguments:
print(opt)
sys.exit(0)
def usage(repo):
@ -112,4 +110,3 @@ def usage(repo):
]
for usg in view:
print(usg)
sys.exit(0)

View file

@ -359,6 +359,7 @@ def main():
if len(args) == 0:
usage('')
sys.exit(0)
if len(args) == 2 and args[0] == 'update' and args[1] == 'slpkg':
args[0] = 'update-slpkg'
@ -390,7 +391,7 @@ def main():
'-f': argparse.bin_find,
'-p': argparse.pkg_desc,
'-d': argparse.pkg_contents,
'-g': argparse.congiguration
'-g': argparse.congiguration,
}
try:
arguments[args[0]]()