Package com.artipie.rpm
Class Rpm
java.lang.Object
com.artipie.rpm.Rpm
The RPM front.
First, you make an instance of this class, providing
your storage as an argument:
Rpm rpm = new Rpm(storage);Then, you put your binary RPM artifact to the storage and call
batchUpdate(Key)
. This method will parse the all RPM packages
in repository and update all the necessary meta-data files. Right after this,
your clients will be able to use the package, via yum
:
rpm.batchUpdate(new Key.From("rmp-repo"));
- Since:
- 0.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.Completable
batchUpdate
(Key prefix) Batch update RPM files for repository.io.reactivex.Completable
batchUpdate
(String prefix) Deprecated.io.reactivex.Completable
batchUpdateIncrementally
(Key prefix) Deprecated.UsebatchUpdate(Key)
io.reactivex.Completable
Deprecated.This method callsbatchUpdate(Key)
with parent of the keyio.reactivex.Completable
Deprecated.useupdate(Key)
instead
-
Constructor Details
-
Rpm
New Rpm for repository in storage. Does not include filelists.xml in update.- Parameters:
stg
- The storage which contains repository
-
Rpm
New Rpm for repository in storage.- Parameters:
stg
- The storage which contains repositoryfilelists
- Include file lists in update
-
Rpm
Ctor.- Parameters:
stg
- The storagenaming
- RPM files naming policydgst
- Hashing sum computation algorithmfilelists
- Include file lists in update
-
Rpm
Ctor.- Parameters:
storage
- The storageconfig
- Repository configuration
-
-
Method Details
-
update
Deprecated.useupdate(Key)
insteadUpdate the meta info for single artifact.- Parameters:
key
- The name of the file just updated- Returns:
- Completion or error signal.
-
update
Deprecated.This method callsbatchUpdate(Key)
with parent of the keyUpdate the meta info for single artifact.- Parameters:
key
- The name of the file just updated- Returns:
- Completion or error signal.
-
batchUpdate
Deprecated.usebatchUpdate(Key)
insteadBatch update RPM files for repository.- Parameters:
prefix
- Repository key prefix (String)- Returns:
- Completable action
-
batchUpdate
Batch update RPM files for repository.- Parameters:
prefix
- Repository key prefix- Returns:
- Completable action
- Throws:
ArtipieIOException
- On IO-operation errors
-
batchUpdateIncrementally
Deprecated.UsebatchUpdate(Key)
Batch update RPM files for repository, works exactly asbatchUpdate(Key)
.- Parameters:
prefix
- Repo prefix- Returns:
- Completable action
- Throws:
ArtipieIOException
- On IO-operation errors
-
batchUpdate(Key)
instead