search for: rmtree

Displaying 20 results from an estimated 24 matches for "rmtree".

Did you mean: rbtree
2010 Jun 10
1
[PATCH] RHEV: Warn instead of die if rmtree dies during cleanup
rmtree can die instead of returning failure under some circumstances. We don't want this to stop cleanup. --- lib/Sys/VirtV2V/Target/RHEV.pm | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/Sys/VirtV2V/Target/RHEV.pm b/lib/Sys/VirtV2V/Target/RHEV.pm index 29...
2005 Nov 24
1
Windows R CMD build <pkg> leftovers
...===================================== --- build.in (revision 36450) +++ build.in (working copy) @@ -434,6 +434,8 @@ if($doit && R_system($cmd)) { $log->error(); $log->print("Installation failed.\n"); + $log->print("Removing '$libdir'\n"); + rmtree($libdir); exit(1); } my $R_LIBS = $ENV{'R_LIBS'};
2023 Nov 20
2
Online Backup failed....
...ption - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 303, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.9/shutil.py", line 718, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py", line 659,...
2007 Oct 02
0
patch: allow R CMD build exclude patterns to match symlinks
...ar"; + my $filepath = &file_path($startdir, $filename); + R_system(join(" ", + ("$tar chf", + &shell_quote_file_path($filepath), + "$pkgname"))); + my $tmpdir = R_tempfile("Rbuild"); + rmtree($tmpdir) if(-d $tmpdir); + mkdir("$tmpdir", 0755) + or die "Error: cannot create directory '$tmpdir'\n"; + chdir($tmpdir); + ## was xhf, but there are no symbolic links here and that is invalid + ## on FreeBSD, see http://www.freebsd.org/cgi/man.cgi?que...
2023 Nov 20
1
Online Backup failed....
...n - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 303, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.9/shutil.py", line 718, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py", line...
2023 Nov 20
4
Online Backup failed....
Hey, dir exisit.... root at dc01:/autofs/backup# ls -la /autofs/backup/linux/samba_dom/backup.tgz/ insgesamt 12484 drwxr-xr-x 4 root root 4096 20. Nov 14:02 . drwxr-xr-x 3 root root 4096 20. Nov 14:00 .. -rw-r--r-- 1 root root 12765535 20. Nov 14:03 samba-backup-samba.laurenz.ws-2023-11-20T14-02-51.306281.tar.bz2 drwx------ 2 root root 4096 20. Nov 14:00 tmpdz6serc_ drwx------ 7 root
2004 Mar 15
1
R v1.9.0 alpha w/ Rtools: gzip problem
...This is also the strategy in the R v1.8.1 build script. In the R v1.9.0 alpha script all gzip calls are on absolute pathnames; R_system("$tar chf $filepath $pkgname"); R_system("gzip -9f $filepath"); cf. system("$tar chf $filepath $pkgname"); chdir($startdir); rmtree($tmpdir); system("gzip -9f $filename"); Modifying the build v1.9.0 alpha to do the latter things works again. More hints: Trying different strategies, it looks like gzip has a problem with /cygdrive/ and/or /cygdrive/C/. It is not clear from README.packages or README in Rtools if/how g...
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...gt; 15: + fail("ERROR: disk label must be 14 characters or less") + +try: + file = os.mkdir("tftpboot") +except OSError, e: + tftp_remove = raw_input("tftpboot directory exists, overwrite? (y/N)? ") + if tftp_remove.lower() == "y": + shutil.rmtree("tftpboot") + os.mkdir("tftpboot") + else: + print "Aborting" + sys.exit(1) + +if options.disk is None: + print "Below are the detected disks, if the iscsi disk is not shown, please ensure you are logged into the correct target\n" +...
2023 Nov 20
1
Online Backup failed....
...t; not empty: 'sam.ldb.d' > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", > line 185, in _run > return self.run(*args, **kwargs) > File > "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line > 303, in run shutil.rmtree(tmpdir) > File "/usr/lib/python3.9/shutil.py", line 718, in rmtree > _rmtree_safe_fd(fd, path, onerror) > File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd > _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/python3.9/sh...
2020 May 05
0
samba-tool domain backup online fails
...n - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 286, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.7/shutil.py", line 491, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.7/shutil.py", line 429, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py", line...
2017 May 06
0
[Bug 1406906] [PATCH 3/3] python: add regression test for RHBZ#1406906
...FS(python_return_dict=True) + + self.guestfs.disk_create(self.filename, "raw", 512 * 1024 * 1024) + self.guestfs.add_drive(self.filename) + self.guestfs.launch() + + def tearDown(self): + self.guestfs.close() + os.unlink(self.filename) + shutil.rmtree(self.tempdir) + + def test_rhbz1406906(self): + self.guestfs.part_disk("/dev/sda", "mbr") + self.guestfs.mkfs("ext3", "/dev/sda1", blocksize=1024) + self.guestfs.mount("/dev/sda1", "/") + + # touch file with...
2023 Nov 20
1
Online Backup failed....
...; not empty: 'sam.ldb.d' > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", > line 185, in _run > return self.run(*args, **kwargs) > File > "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line > 303, in run shutil.rmtree(tmpdir) > File "/usr/lib/python3.9/shutil.py", line 718, in rmtree > _rmtree_safe_fd(fd, path, onerror) > File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd > _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/python3.9/sh...
2020 May 05
1
samba-tool domain backup online fails
...n - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 286, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.7/shutil.py", line 491, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.7/shutil.py", line 429, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py", line...
2017 May 09
1
[PATCH] RHBZ#1406906: check return value of Python object functions
...n Street, Fifth Floor, Boston, MA 02110-1301 USA. + +import os +import sys +import shutil +import tempfile +import unittest + +import guestfs + + +class Test830RHBZ1406906(unittest.TestCase): + def setUp(self): + self.tempdir = tempfile.mkdtemp() + + def tearDown(self): + shutil.rmtree(self.tempdir) + + def test_rhbz1406906(self): + g = guestfs.GuestFS(python_return_dict=True) + + g.add_drive_scratch(512 * 1024 * 1024) + g.launch() + + g.part_disk("/dev/sda", "mbr") + g.mkfs("ext4", "/dev/sda1") +...
2013 Jul 03
2
Potential memory leak when assigning MSetItem values
...I think the MSetItems are preserved in memory and are not being garbage collected correctly, possibly from a lingering reference to the MSet or MSetIterator. import os import simplejson as json import xapian as x import shutil import gc def make_db(path, num_docs=100000): try: shutil.rmtree(path) except OSError, e: if e.errno != 2: raise db = x.WritableDatabase(path, x.DB_CREATE) for i in xrange(1, num_docs): doc = x.Document() doc.set_data(json.dumps({ 'id': i, 'enabled': True })) doc.add_term('XTYPA')...
2007 Apr 04
1
seamonkey on Centos 2.1 deletes itself!
...sr/lib/mozilla-seamonkey-1.0.8"; %{ENV}->{"LD_LIBRARY_PATH"}="/usr/lib/mozilla-seamonkey-1.0.8"; %{ENV}->{"MOZ_DISABLE_GNOME"}="1"; umask 022; if ( -f "/usr/lib/mozilla-seamonkey-1.0.8/regxpcom" ) { # remove all of the old files rmtree("/usr/lib/mozilla-seamonkey-1.0.8/chrome/overlayinfo"); unlink </usr/lib/mozilla-seamonkey-1.0.8/chrome/*.rdf>; [root at magpie root]# Why is this?
2017 May 06
5
[Bug 1406906] [PATCH 0/3] Fix segmentation fault in Python bindings
This series addresses the issue where non UTF8 file names in a guest image lead to libguestfs segfault with Python 3 APIs. The core issue is the APIs are not checking the return value when constructing a new PyObject. Therefore NULL pointers are added to Python collections (lists and dictionaries) crashing the application. Few notes regarding the comments on the previous patch. - Added a
2013 Oct 11
9
[PATCH OSSTEST 0/6] Support for serial logs from marilith boxes
The marilith boxes use a conserver (http://www.conserver.com/) setup for serial access. Our installation exports the logs via http allowing us to grab them with wget. Sending debug keys with is handled separately via xenuse. xenuse ultimately speaks to the conserver too but it abstracts away the IP and port to use so this is preferred. With these changes the correct Serial hostprop for a
2010 Oct 26
0
[PATCH node] add install.py
...quot;/boot" + grub_dir = "/boot/grub" + grub_prefix = "/grub" + else: + initrd_dest = "/liveos" + grub_dir = "/liveos/boot/grub" + grub_prefix = "/boot/grub" + if os.path.isdir(grub_dir): + shutil.rmtree(grub_dir) + if not os.path.exists(grub_dir): + os.makedirs(grub_dir) + os.system("cp -p /live/" + syslinux + "/vmlinuz0 " + initrd_dest) + rc = os.system("cp -p /live/" + syslinux + "/initrd0.img " + initrd_dest) + if rc != 0: + log(...
2010 Jun 08
3
[PATCH 1/3] Fix RHEV cleanup on unclean shutdown
Cleanup was not happening properly if a migration to RHEV was killed prematurely with a Ctrl-C. Firstly, the SIGINT and SIGQUIT handlers were not being registered early enough in virt-v2v.pl. Secondly, if Ctrl-C killed the guestfs qemu process first it would deliver a SIGPIPE to v2v, which caused an unclean shutdown without cleanup. Fixes RHBZ#596015 --- v2v/virt-v2v.pl | 17 ++++++++++++++---