mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 09:49:51 +00:00
Compare commits
11 Commits
4c9309ea9c
...
7658cdafbc
Author | SHA1 | Date | |
---|---|---|---|
7658cdafbc | |||
ecf005fad0 | |||
de0542d2a8 | |||
|
bcb26507fe | ||
c35db7f698 | |||
d2193328a7 | |||
|
ed64428c80 | ||
|
e89156e55c | ||
|
b048fa5968 | ||
|
0e8cd32a6e | ||
|
ea191a8924 |
@ -259,7 +259,7 @@ class DupeGuru(Broadcaster):
|
|||||||
|
|
||||||
def _create_file(self, path):
|
def _create_file(self, path):
|
||||||
# We add fs.Folder to fileclasses in case the file we're loading contains folder paths.
|
# We add fs.Folder to fileclasses in case the file we're loading contains folder paths.
|
||||||
return fs.get_file(path, self.fileclasses + [fs.Folder])
|
return fs.get_file(path, self.fileclasses + [se.fs.Folder])
|
||||||
|
|
||||||
def _get_file(self, str_path):
|
def _get_file(self, str_path):
|
||||||
path = Path(str_path)
|
path = Path(str_path)
|
||||||
@ -539,8 +539,8 @@ class DupeGuru(Broadcaster):
|
|||||||
return dupe.get_display_info(group, delta)
|
return dupe.get_display_info(group, delta)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.warning(
|
logging.warning(
|
||||||
"Exception on GetDisplayInfo for %s: %s", str(dupe.path), str(e)
|
"Exception (type: %s) on GetDisplayInfo for %s: %s",
|
||||||
)
|
type(e), str(dupe.path), str(e))
|
||||||
return empty_data()
|
return empty_data()
|
||||||
|
|
||||||
def invoke_custom_command(self):
|
def invoke_custom_command(self):
|
||||||
|
@ -557,7 +557,7 @@ def fix_qt_resource_file(path):
|
|||||||
with open(path, "rb") as fp:
|
with open(path, "rb") as fp:
|
||||||
contents = fp.read()
|
contents = fp.read()
|
||||||
lines = contents.split(b"\n")
|
lines = contents.split(b"\n")
|
||||||
lines = [l for l in lines if not l.startswith(b"#")]
|
lines = [line for line in lines if not line.startswith(b"#")]
|
||||||
with open(path, "wb") as fp:
|
with open(path, "wb") as fp:
|
||||||
fp.write(b"\n".join(lines))
|
fp.write(b"\n".join(lines))
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ import shutil
|
|||||||
import json
|
import json
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
import platform
|
import platform
|
||||||
|
import distro
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from hscommon.build import (
|
from hscommon.build import (
|
||||||
@ -90,7 +91,7 @@ def package_debian_distribution(distribution):
|
|||||||
)
|
)
|
||||||
shutil.copy(op.join("images", "dgse_logo_128.png"), srcpath)
|
shutil.copy(op.join("images", "dgse_logo_128.png"), srcpath)
|
||||||
os.chdir(destpath)
|
os.chdir(destpath)
|
||||||
cmd = "dpkg-buildpackage -S -us -uc"
|
cmd = "dpkg-buildpackage -F -us -uc"
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
os.chdir("../..")
|
os.chdir("../..")
|
||||||
|
|
||||||
@ -212,7 +213,7 @@ def main():
|
|||||||
package_windows()
|
package_windows()
|
||||||
else:
|
else:
|
||||||
if not args.arch_pkg:
|
if not args.arch_pkg:
|
||||||
distname, _, _ = platform.dist()
|
distname = distro.id()
|
||||||
else:
|
else:
|
||||||
distname = "arch"
|
distname = "arch"
|
||||||
if distname == "arch":
|
if distname == "arch":
|
||||||
|
@ -2,3 +2,4 @@ Send2Trash>=1.3.0
|
|||||||
sphinx>=1.2.2
|
sphinx>=1.2.2
|
||||||
polib>=1.0.4
|
polib>=1.0.4
|
||||||
hsaudiotag3k>=1.1.3
|
hsaudiotag3k>=1.1.3
|
||||||
|
distro>=1.5.0
|
Loading…
x
Reference in New Issue
Block a user