mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-10 20:01:54 +01:00
Merge branch 'develop'
This commit is contained in:
commit
5bac9d75af
7 changed files with 5292 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
3.7.2 - 06/12/2019
|
||||
Fixed:
|
||||
- Bugfix handle requests raise ConnectionError
|
||||
|
||||
3.7.1 - 03/12/2019
|
||||
Updated:
|
||||
- pythondialog dependency
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# slpkg 3.7.1
|
||||
# slpkg 3.7.2
|
||||
|
||||
Slpkg is a powerful software package manager that installs, updates, and removes packages on
|
||||
[Slackware](http://www.slackware.com/) based systems. It automatically computes dependencies and
|
||||
|
@ -14,16 +14,11 @@ target as well as easy to understand and use, also use colors to highlight packa
|
|||
display warning messages, etc.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#### Asciicast:
|
||||
|
||||
[<img src="https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa" width="250"/>](https://asciinema.org/a/3uFNAOX8o16AmKKJDIvdezPBa)
|
||||
|
||||
|
||||
|
||||
|
||||
##### Copyright
|
||||
|
||||
Copyright 2014-2019 © Dimitris Zlatanidis. Slackware® is a Registered Trademark of Patrick Volkerding. Linux is a Registered Trademark of Linus Torvalds.
|
||||
|
|
5
clean.py
5
clean.py
|
@ -26,7 +26,7 @@ import os
|
|||
import shutil
|
||||
|
||||
|
||||
class Clean(object):
|
||||
class Clean:
|
||||
"""Clean all data like man page, log files, PACKAGES.TXT and
|
||||
configuration files. This is useful if "slpkg" installed via
|
||||
"pip" because pip uninstalls only Python packages and script
|
||||
|
@ -58,4 +58,5 @@ class Clean(object):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Clean().start()
|
||||
clean = Clean()
|
||||
clean.start()
|
||||
|
|
5279
slpkg.cast
Normal file
5279
slpkg.cast
Normal file
File diff suppressed because it is too large
Load diff
|
@ -78,7 +78,7 @@ class MetaData(object):
|
|||
|
||||
__all__ = "slpkg"
|
||||
__author__ = "dslackw"
|
||||
__version_info__ = (3, 7, 1)
|
||||
__version_info__ = (3, 7, 2)
|
||||
__version__ = "{0}.{1}.{2}".format(*__version_info__)
|
||||
__license__ = "GNU General Public License v3 (GPLv3)"
|
||||
__email__ = "d.zlatanidis@gmail.com"
|
||||
|
|
|
@ -38,7 +38,8 @@ class FileSize(object):
|
|||
try:
|
||||
r = requests.head(self.registry)
|
||||
return int(r.headers["Content-Length"])
|
||||
except (requests.exceptions.Timeout):
|
||||
except (requests.exceptions.Timeout,
|
||||
requests.exceptions.ConnectionError):
|
||||
return " "
|
||||
|
||||
def local(self):
|
||||
|
|
|
@ -40,7 +40,8 @@ class URL(object):
|
|||
try:
|
||||
f = requests.get(self.link)
|
||||
return f.text
|
||||
except (requests.exceptions.Timeout):
|
||||
except (requests.exceptions.Timeout,
|
||||
requests.exceptions.ConnectionError):
|
||||
print("\n{0}Can't read the file '{1}'{2}".format(
|
||||
self.meta.color["RED"], self.link.split("/")[-1],
|
||||
self.meta.color["ENDC"]))
|
||||
|
|
Loading…
Reference in a new issue