mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Update signal interrupts in script
This commit is contained in:
parent
ee1931d8ea
commit
6d5acfc660
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,11 @@
|
||||||
Slpkg is a user-friendly package manager for Slackware installations
|
Slpkg is a user-friendly package manager for Slackware installations
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import signal
|
||||||
from slpkg.main import main
|
from slpkg.main import main
|
||||||
|
from slpkg.interrupts import signal_handler
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -24,11 +24,8 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import signal
|
|
||||||
import getpass
|
import getpass
|
||||||
|
|
||||||
from slpkg.interrupts import signal_handler
|
|
||||||
|
|
||||||
from slpkg.load import Regex
|
from slpkg.load import Regex
|
||||||
from slpkg.desc import PkgDesc
|
from slpkg.desc import PkgDesc
|
||||||
from slpkg.messages import Msg
|
from slpkg.messages import Msg
|
||||||
|
@ -663,5 +660,4 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
signal.signal(signal.SIGINT, signal_handler)
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue