Merge pull request #114 from aplanas/master

Fix action #1906 move only moves one
This commit is contained in:
Tomáš Chvátal 2014-03-13 12:58:18 +01:00
commit 9c2a5eff3b
2 changed files with 3 additions and 8 deletions

View File

@ -9,17 +9,9 @@
import os import os
import os.path import os.path
import re
import sys import sys
from xml.etree import cElementTree as ET
from osc import cmdln, oscerr from osc import cmdln, oscerr
from osc.core import delete_project
from osc.core import makeurl
from osc.core import meta_get_packagelist
from osc.core import http_GET
from osc.core import http_POST
from osc.core import server_diff
# Expand sys.path to search modules inside the pluging directory # Expand sys.path to search modules inside the pluging directory
_plugin_dir = os.path.expanduser('~/.osc-plugins') _plugin_dir = os.path.expanduser('~/.osc-plugins')
@ -36,11 +28,13 @@ from osclib.check_command import CheckCommand
OSC_STAGING_VERSION = '0.0.1' OSC_STAGING_VERSION = '0.0.1'
def _print_version(self): def _print_version(self):
""" Print version information about this extension. """ """ Print version information about this extension. """
print(self.OSC_STAGING_VERSION) print(self.OSC_STAGING_VERSION)
quit(0) quit(0)
@cmdln.option('--move', action='store_true', @cmdln.option('--move', action='store_true',
help='force the selection to become a move') help='force the selection to become a move')
@cmdln.option('-f', '--from', dest='from_', metavar='FROMPROJECT', @cmdln.option('-f', '--from', dest='from_', metavar='FROMPROJECT',

View File

@ -121,6 +121,7 @@ class StagingAPI(object):
# Delete the old one # Delete the old one
self.rm_from_prj(source_project, request_id=req_id, self.rm_from_prj(source_project, request_id=req_id,
msg='Moved to {}'.format(destination_project)) msg='Moved to {}'.format(destination_project))
return True
def get_staging_projects(self): def get_staging_projects(self):
""" """