Projects
Extra
aMule
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 27
View file
aMule.spec
Changed
@@ -1,6 +1,6 @@ Name: aMule Summary: Another eMule file-sharing program -Version: 2.3.1+git20150505.0945 +Version: 2.3.1+git20150529.1049 Release: 0 License: GPL-2.0+ Group: Productivity/Networking/Other
View file
update.diff.xz
Changed
@@ -1,10 +1,10 @@ diff --git a/.svn-revision b/.svn-revision -index ca56113..d7703a6 100644 +index ca56113..0c0e885 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10865 -+10870 ++10871 diff --git a/configure b/configure index ae0a1bc..990a088 100755 --- a/configure @@ -64,18 +64,19 @@ if test \${sha} = ${git_sha} ; then echo "rev. \${svn_revision}${modified}" diff --git a/docs/Changelog b/docs/Changelog -index 562606a..c9918cd 100644 +index 562606a..bcdf130 100644 --- a/docs/Changelog +++ b/docs/Changelog -@@ -16,6 +16,7 @@ Version 2.4.0 - The river knows. +@@ -16,6 +16,8 @@ Version 2.4.0 - The river knows. * Adapt configure to handle subversion repository clones in mercurial and git * Fix bfd detection for systems missing -liberty + * Add support for 'canceled.met' to the fileview tool ++ * Implemented the missing 'show shared' command in amulecmd iz0bbz: * Fix WinSock library version detection with MinGW-w64 -@@ -27,6 +28,7 @@ Version 2.4.0 - The river knows. +@@ -27,6 +29,7 @@ Version 2.4.0 - The river knows. Mr Hyde: * Fix "Disable computer's timed standby mode" for MacOS 10.9 Mavericks * Compilation fix on Linux Slackware 64bit and MacOS 10.9.4 @@ -180,6 +181,73 @@ default: AddTagUnique(tag); } +diff --git a/src/TextClient.cpp b/src/TextClient.cpp +index d81fa8a..9eaaefc 100644 +--- a/src/TextClient.cpp ++++ b/src/TextClient.cpp +@@ -444,6 +444,10 @@ int CamulecmdApp::ProcessCommand(int CmdId) + request_list.push_back(new CECPacket(EC_OP_GET_SERVER_LIST, EC_DETAIL_CMD)); + break; + ++ case CMD_ID_SHOW_SHARED: ++ request_list.push_back(new CECPacket(EC_OP_GET_SHARED_FILES)); ++ break; ++ + case CMD_ID_RESET_LOG: + request_list.push_back(new CECPacket(EC_OP_RESET_LOG)); + break; +@@ -807,6 +811,42 @@ void CamulecmdApp::Process_Answer_v2(const CECPacket *response) + } + } + break; ++ ++ case EC_OP_SHARED_FILES: ++ for (CECPacket::const_iterator it = response->begin(); it != response->end(); ++it) { ++ const CEC_SharedFile_Tag *tag = static_cast<const CEC_SharedFile_Tag *>(&*it); ++ s << tag->FileHashString() << wxT(" "); ++ wxString filePath = tag->FilePath(); ++ bool ispartfile = true; ++ if (filePath.EndsWith(wxT(".part"))) { ++ for (unsigned i = 0; i < filePath.Length() - 5; i++) { ++ if (filePath[i] < wxT('0') || filePath[i] > wxT('9')) { ++ ispartfile = false; ++ break; ++ } ++ } ++ } else { ++ ispartfile = false; ++ } ++ if (ispartfile) { ++ s << _("[PartFile]") << wxT(" "); ++ } else { ++ s << filePath ++#ifdef __WINDOWS__ ++ << wxT('\\'); ++#else ++ << wxT('/'); ++#endif ++ } ++ s << tag->FileName() ++ << wxT("\n\t") << PriorityToStr(tag->UpPrio() % 10, tag->UpPrio() >= 10) << wxT(" - ") << CFormat(wxT("%i(%i) / %i(%i) - %s (%s) - %.2f\n")) ++ % tag->GetRequests() % tag->GetAllRequests() ++ % tag->GetAccepts() % tag->GetAllAccepts() ++ % CastItoXBytes(tag->GetXferred()) % CastItoXBytes(tag->GetAllXferred()) ++ % (static_cast<float>(tag->GetAllXferred()) / static_cast<float>(tag->SizeFull())); ++ } ++ break; ++ + case EC_OP_STATSTREE: + s << StatTree2Text(static_cast<const CEC_StatTree_Node_Tag*>(response->GetTagByName(EC_TAG_STATTREE_NODE)), 0); + break; +@@ -954,7 +994,7 @@ void CamulecmdApp::OnInitCommandSet() + tmp->AddCommand(wxT("DL"), CMD_ID_SHOW_DL, wxTRANSLATE("Show download queue."), wxEmptyString, CMD_PARAM_NEVER); + tmp->AddCommand(wxT("Log"), CMD_ID_SHOW_LOG, wxTRANSLATE("Show log."), wxEmptyString, CMD_PARAM_NEVER); + tmp->AddCommand(wxT("Servers"), CMD_ID_SHOW_SERVERS, wxTRANSLATE("Show servers list."), wxEmptyString, CMD_PARAM_NEVER); +-// tmp->AddCommand(wxT("Shared"), CMD_ID_SHOW_SHARED, wxTRANSLATE("Show shared files list."), wxEmptyString, CMD_PARAM_NEVER); ++ tmp->AddCommand(wxT("Shared"), CMD_ID_SHOW_SHARED, wxTRANSLATE("Show shared files list."), wxEmptyString, CMD_PARAM_NEVER); + + m_commands.AddCommand(wxT("Reset"), CMD_ID_RESET_LOG, wxTRANSLATE("Reset log."), wxEmptyString, CMD_PARAM_NEVER); + diff --git a/src/utils/fileview/FileView.cpp b/src/utils/fileview/FileView.cpp index 62ee4df..0c8c985 100644 --- a/src/utils/fileview/FileView.cpp
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.