diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-02-22 05:59:43 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-02-22 05:59:43 +0100 |
| commit | ffece2d20673269029bb0b9403e20125e92382fa (patch) | |
| tree | 68b7f9ecc79acfd59dfa209278d68fda15d1428c /src/plugins | |
| parent | 6cc86c66a15ea305b453e5d1b2d62e4d974f579d (diff) | |
| download | abrt-ffece2d20673269029bb0b9403e20125e92382fa.tar.gz abrt-ffece2d20673269029bb0b9403e20125e92382fa.tar.xz abrt-ffece2d20673269029bb0b9403e20125e92382fa.zip | |
correct rights on /var/run/abrt; improve new GUI a bit
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins')
| -rwxr-xr-x | src/plugins/abrt-action-install-debuginfo.py | 6 | ||||
| -rw-r--r-- | src/plugins/abrt-action-upload.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/abrt-action-install-debuginfo.py b/src/plugins/abrt-action-install-debuginfo.py index d09f00f5..f9d1f50f 100755 --- a/src/plugins/abrt-action-install-debuginfo.py +++ b/src/plugins/abrt-action-install-debuginfo.py @@ -131,18 +131,18 @@ class MyDownloadCallback(DownloadBaseCallback): self.last_pct = pct # if run from terminal we can have a fancy output if sys.stdout.isatty(): - sys.stdout.write("\033[sDownloading (%i of %i) %s: %.3s %%\033[u" + sys.stdout.write("\033[sDownloading (%i of %i) %s: %3u%%\033[u" % (self.downloaded_pkgs + 1, self.total_pkgs, name, pct) ) if pct == 100: - print _("Downloading (%i of %i) %s: %.3s %%" + print _("Downloading (%i of %i) %s: %3u%%" % (self.downloaded_pkgs + 1, self.total_pkgs, name, pct) ) # but we want machine friendly output when spawned from abrt-server else: - print (_("Downloading (%i of %i) %s: %.3s %%") + print (_("Downloading (%i of %i) %s: %3u%%") % (self.downloaded_pkgs + 1, self.total_pkgs, name, pct) ) diff --git a/src/plugins/abrt-action-upload.c b/src/plugins/abrt-action-upload.c index b19f5bfb..6f9c5fab 100644 --- a/src/plugins/abrt-action-upload.c +++ b/src/plugins/abrt-action-upload.c @@ -128,7 +128,7 @@ static int create_and_upload_archive( /* Create a child gzip which will compress the data */ /* SELinux guys are not happy with /tmp, using /var/run/abrt */ - tempfile = xasprintf(LOCALSTATEDIR"/run/abrt/tmp-%lu-%lu.tar.gz", (long)getpid(), (long)time(NULL)); + tempfile = xasprintf(LOCALSTATEDIR"/run/abrt/upload-%lu-%lu.tar.gz", (long)getpid(), (long)time(NULL)); int pipe_from_parent_to_child[2]; xpipe(pipe_from_parent_to_child); child = fork(); |
