mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
40 lines
1.8 KiB
Diff
40 lines
1.8 KiB
Diff
diff -Nurp trash-cli-0.12.9.14-orig/integration_tests/test_trash_rm_script.py trash-cli-0.12.9.14/integration_tests/test_trash_rm_script.py
|
|
--- trash-cli-0.12.9.14-orig/integration_tests/test_trash_rm_script.py 2014-12-23 10:10:43.808470486 +0100
|
|
+++ trash-cli-0.12.9.14/integration_tests/test_trash_rm_script.py 2014-12-23 10:11:02.688517975 +0100
|
|
@@ -9,7 +9,7 @@ from pprint import pprint
|
|
@istest
|
|
class WhenNoArgs:
|
|
def setUp(self):
|
|
- process = Popen(['python', 'trashcli/rm.py'],
|
|
+ process = Popen(['@python@', 'trashcli/rm.py'],
|
|
env={'PYTHONPATH':'.'},
|
|
stdin=None,
|
|
stdout=PIPE,
|
|
diff -Nurp trash-cli-0.12.9.14-orig/trashcli/list_mount_points.py trash-cli-0.12.9.14/trashcli/list_mount_points.py
|
|
--- trash-cli-0.12.9.14-orig/trashcli/list_mount_points.py 2014-12-23 10:10:43.808470486 +0100
|
|
+++ trash-cli-0.12.9.14/trashcli/list_mount_points.py 2014-12-23 10:19:04.954796457 +0100
|
|
@@ -12,7 +12,7 @@ def mount_points_from_getmnt():
|
|
|
|
def mount_points_from_df():
|
|
import subprocess
|
|
- df_output = subprocess.Popen(["df", "-P"], stdout=subprocess.PIPE).stdout
|
|
+ df_output = subprocess.Popen(["@df@", "-P"], stdout=subprocess.PIPE).stdout
|
|
return list(_mount_points_from_df_output(df_output))
|
|
|
|
def _mount_points_from_df_output(df_output):
|
|
@@ -46,13 +46,7 @@ def _mounted_filesystems_from_getmnt() :
|
|
("mnt_freq", c_int), # Dump frequency (in days).
|
|
("mnt_passno", c_int)] # Pass number for `fsck'.
|
|
|
|
- if sys.platform == "cygwin":
|
|
- libc_name = "cygwin1.dll"
|
|
- else:
|
|
- libc_name = find_library("c")
|
|
-
|
|
- if libc_name == None :
|
|
- libc_name="/lib/libc.so.6" # fix for my Gentoo 4.0
|
|
+ libc_name = "@libc@"
|
|
|
|
libc = cdll.LoadLibrary(libc_name)
|
|
libc.getmntent.restype = POINTER(mntent_struct)
|