mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
update source
This commit is contained in:
parent
0391c0d329
commit
58cbf58318
2 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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]]()
|
||||
|
|
Loading…
Add table
Reference in a new issue