[packages/lftp] - up to 4.7.1
arekm
arekm at pld-linux.org
Fri Apr 8 21:52:26 CEST 2016
commit 3096c016bf403bc1be909c4095fee3f2aa9ffcc2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Apr 8 21:52:20 2016 +0200
- up to 4.7.1
lftp-edit-new.patch | 99 -----------------------------------------------------
lftp.spec | 6 ++--
2 files changed, 2 insertions(+), 103 deletions(-)
---
diff --git a/lftp.spec b/lftp.spec
index 89504a2..3b1d792 100644
--- a/lftp.spec
+++ b/lftp.spec
@@ -23,12 +23,12 @@ Summary(pl.UTF-8): Zaawansowany klient FTP/HTTP
Summary(pt_BR.UTF-8): Sofisticado programa de transferência de arquivos (cliente FTP/HTTP)
Summary(zh_CN.UTF-8): lftp 客户端程序
Name: lftp
-Version: 4.6.5
+Version: 4.7.1
Release: 1
License: GPL v3+
Group: Applications/Networking
Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
-# Source0-md5: 39507c331a987e0534acf75a4c3824a0
+# Source0-md5: 7dfb03c6544efeef633bc28ba7df8b77
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
# Source1-md5: cdad8fb5342eebd9916eccefc98a855b
Source2: %{name}.desktop
@@ -40,7 +40,6 @@ Patch2: aliases.patch
# when updated attach at https://github.com/lavv17/lftp/issues
Patch3: %{name}-pl.po-update.patch
Patch4: %{name}-am.patch
-Patch5: lftp-edit-new.patch
URL: http://lftp.yar.ru/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
@@ -98,7 +97,6 @@ o arquivo FEATURES para uma lista mais detalhada.
%patch2 -p1
#%patch3 -p1
%patch4 -p1
-%patch5 -p1
%{__rm} po/stamp-po
diff --git a/lftp-edit-new.patch b/lftp-edit-new.patch
deleted file mode 100644
index 164ba6c..0000000
--- a/lftp-edit-new.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-From 9dbf23ac89031129bdf39d8dd461c83617e0a2cb Mon Sep 17 00:00:00 2001
-From: "Alexander V. Lukyanov" <lavv17f at gmail.com>
-Date: Thu, 5 Nov 2015 16:14:38 +0300
-Subject: [PATCH] edit: allow creating a new file
-
----
- src/EditJob.cc | 13 ++++---------
- src/EditJob.h | 2 +-
- 2 files changed, 5 insertions(+), 10 deletions(-)
-
-diff --git a/src/EditJob.cc b/src/EditJob.cc
-index 0ab731d..5946c72 100644
---- a/src/EditJob.cc
-+++ b/src/EditJob.cc
-@@ -33,11 +33,11 @@ void EditJob::Finish(int e)
- unlink(temp_file);
- }
-
--int EditJob::HandleJob(JobRef<Job>& j)
-+int EditJob::HandleJob(JobRef<Job>& j,bool fail)
- {
- if(!j->Done())
- return STALL;
-- if(j->ExitCode())
-+ if(j->ExitCode() && fail)
- Finish(1);
- RemoveWaiting(j);
- return MOVED;
-@@ -82,18 +82,13 @@ int EditJob::Do()
- return MOVED;
- }
- if(get) {
-- if(!HandleJob(get))
-+ if(!HandleJob(get,false))
- return m;
- if(done)
- return MOVED;
- struct stat st;
- int res=stat(temp_file,&st);
-- if(res<0) {
-- perror(temp_file);
-- Finish(1);
-- return MOVED;
-- }
-- mtime=st.st_mtime;
-+ mtime=(res>=0?st.st_mtime:NO_DATE);
- xstring cmd("${EDITOR:-vi} ");
- cmd.append(shell_encode(temp_file));
- editor=new SysCmdJob(cmd);
-diff --git a/src/EditJob.h b/src/EditJob.h
-index d527965..c70b250 100644
---- a/src/EditJob.h
-+++ b/src/EditJob.h
-@@ -34,7 +34,7 @@ class EditJob : public SessionJob
- int exit_code;
- bool done;
-
-- int HandleJob(JobRef<Job>& j);
-+ int HandleJob(JobRef<Job>& j, bool fail=true);
- void Finish(int code);
-
- public:
-From 7840bb4716f2365f8de9067b5482144ca3522e16 Mon Sep 17 00:00:00 2001
-From: "Alexander V. Lukyanov" <lavv17f at gmail.com>
-Date: Thu, 5 Nov 2015 16:15:13 +0300
-Subject: [PATCH] get: rename the backup file back if retrieval fails.
-
----
- src/GetJob.cc | 16 +++++++++++-----
- 1 file changed, 11 insertions(+), 5 deletions(-)
-
-diff --git a/src/GetJob.cc b/src/GetJob.cc
-index 4419255..0ff8999 100644
---- a/src/GetJob.cc
-+++ b/src/GetJob.cc
-@@ -42,12 +42,18 @@ int GetJob::Do()
- {
- int m=STALL;
-
-- if(cp && cp->Done() && !cp->Error())
-+ if(cp && cp->Done())
- {
-- // now we can delete old file, since there is new one
-- RemoveBackupFile();
-- if(file_mode!=NO_MODE && local)
-- chmod(local->full_name,file_mode);
-+ if(cp->Error()) {
-+ // in case of errors, move the backup to original location
-+ if(local && backup_file)
-+ rename(backup_file,local->full_name);
-+ } else {
-+ // now we can delete the old file, since there is a new one
-+ RemoveBackupFile();
-+ if(file_mode!=NO_MODE && local)
-+ chmod(local->full_name,file_mode);
-+ }
- }
- if(super::Do()==MOVED)
- m=MOVED;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lftp.git/commitdiff/3096c016bf403bc1be909c4095fee3f2aa9ffcc2
More information about the pld-cvs-commit
mailing list